|
AppCore
|
Simple class for locking files on filesystem. More...
#include <ELockManager.h>
Public Types | |
| enum | ELockResult { FILE_NOT_FOUND = 0 , FILE_SUCCESSFULLY_LOCKED = 1 , FILE_NOT_LOCKED = 2 } |
| enum | LockType { SHARED_LOCK = 0 , EXCLUSIVE_LOCK = 1 } |
Public Member Functions | |
| ELockManager () | |
| ~ELockManager () | |
Static Public Member Functions | |
| static ELockResult | Lock (LockType lockType, unsigned short lockTryCount, unsigned long lockTryWait, int fileDescriptor) |
| static long | UnLock (int fileDescriptor) |
Simple class for locking files on filesystem.
| ELockManager::ELockManager | ( | ) |
CONSTRUCTOR
| ELockManager::~ELockManager | ( | ) |
DESTRUCTOR
|
static |
Lock

|
static |
UnLock
