INTRODUCTION
Overview
Download and Install
Documentation
Publications

REPOSITORY
Libraries

DEVELOPER
Dev Guide
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

gbxserialacfr::lockfile::LockFile Class Reference

#include <lockfile.h>

List of all members.


Detailed Description

Creates a lock-file (in /var/lock) which can be used to prevent multiple access to a unique resource (eg "/dev/xxx"). Stores the PID of the locking process (lockPid), so it can check for stale lock-files.

Throws LockFileException's on errors (including 'device locked').

The destructor removes the lock-file (guarantees that no exceptions are thrown).

For more info, see: http://tldp.org/HOWTO/Serial-HOWTO-14.html

Author:
Alex Brooks

The documentation for this class was generated from the following files:
 

Generated for GearBox by  doxygen 1.4.5