WvStreams
Public Member Functions | List of all members
WvLockDev Class Reference

Class to handle Lock files - useful for WvDial and other places where we need to guarantee exclusive access to a file or device. More...

#include <wvlockdev.h>

Public Member Functions

 WvLockDev (WvString _devicename)
 
bool lock ()
 
void unlock ()
 
bool islocked () const
 
 WvLockDev (WvString _devicename)
 
bool lock ()
 
void unlock ()
 
bool islocked () const
 

Detailed Description

Class to handle Lock files - useful for WvDial and other places where we need to guarantee exclusive access to a file or device.

Creates/Removes lockfiles in /var/lock.

Definition at line 17 of file debian/libwvstreams-dev/usr/include/wvstreams/wvlockdev.h.

Constructor & Destructor Documentation

◆ WvLockDev()

WvLockDev::WvLockDev ( WvString  _devicename)

Definition at line 17 of file wvlockdev.cc.

◆ ~WvLockDev()

WvLockDev::~WvLockDev ( )

Definition at line 31 of file wvlockdev.cc.

Member Function Documentation

◆ lock()

bool WvLockDev::lock ( )

Definition at line 79 of file wvlockdev.cc.

◆ unlock()

void WvLockDev::unlock ( )

Definition at line 136 of file wvlockdev.cc.

◆ islocked() [1/2]

bool WvLockDev::islocked ( ) const
inline

◆ islocked() [2/2]

bool WvLockDev::islocked ( ) const
inline

Definition at line 27 of file include/wvlockdev.h.


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