This group contains the definition of a GWEN_FSLOCK.
More...
This group contains the definition of a GWEN_FSLOCK.
The files in this group provide a very simple lock mechanism. When a file is to be locked a lockfile is created exclusively. If this lockfile can not be created exclusively (because it already exists) the file is assumed to be locked. This group can lock files and folders. For folders the lockfile name consists of the foldername plus "/.dir.lck", for files it is the filename plus ".lck". This only works if you have write-access to the folder or, if locking a file, to the folder containing the file to be locked.
◆ GWEN_FSLOCK
◆ GWEN_FSLOCK_RESULT
Enumerator |
---|
GWEN_FSLock_ResultOk | |
GWEN_FSLock_ResultError | |
GWEN_FSLock_ResultTimeout | |
GWEN_FSLock_ResultBusy | |
GWEN_FSLock_ResultNoLock | |
GWEN_FSLock_ResultUserAbort | |
Definition at line 71 of file fslock.h.
◆ GWEN_FSLOCK_TYPE
Enumerator |
---|
GWEN_FSLock_TypeUnknown | |
GWEN_FSLock_TypeFile | |
GWEN_FSLock_TypeDir | |
Definition at line 64 of file fslock.h.
◆ GWEN_FSLock_Attach()
◆ GWEN_FSLock_free()
◆ GWEN_FSLock_GetName()
◆ GWEN_FSLock_Lock()
This function tries to acquire a lock for the given file/folder. It waits if necessary (using GWEN_Gui_ProgressStart) while waiting.
- Parameters
-
◆ GWEN_FSLock_new()
◆ GWEN_FSLock_Unlock()
This function removes a lock.
- Parameters
-