AppCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ELockManager.h
Go to the documentation of this file.
1 #ifndef ELOCKMANAGER_H
2 #define ELOCKMANAGER_H
3 
4 namespace EM
5 {
6  namespace EventFileProcessor
7  {
11  {
12  public:
13 
15  {
19  };
20 
21  enum LockType
22  {
23  SHARED_LOCK = 0, // zdielany zamok
24  EXCLUSIVE_LOCK = 1 // exkluzivny zamok
25  };
26 
27  ELockManager();
28  ~ELockManager();
29 
30  static ELockResult Lock( LockType lockType, unsigned short lockTryCount, unsigned long lockTryWait, int fileDescriptor );
31  static long UnLock( int fileDescriptor );
32  };
33  }
34 }
35 
36 #endif // ELOCKMANAGER_H
ELockResult
Definition: EAdvertisementReaderWriter.h:13
~ELockManager()
Definition: ELockManager.cpp:111
ELockResult
Definition: ELockManager.h:14
LockType
Definition: ELockManager.h:21
LockType
Definition: EAdvertisementReaderWriter.h:20
static long UnLock(int fileDescriptor)
Definition: ELockManager.cpp:128
SYSTEM INCLUDES.
Definition: CardFacadeManagerXML.h:6
ELockManager()
Definition: ELockManager.cpp:103
static ELockResult Lock(LockType lockType, unsigned short lockTryCount, unsigned long lockTryWait, int fileDescriptor)
Definition: ELockManager.cpp:119
Simple class for locking files on filesystem.
Definition: ELockManager.h:10