#include <GSemaphore.h>

Public Member Functions | |
| GSemaphore (char *name=0) | |
| Constructor. | |
| bool | Lock (char *file, int line) |
| bool | LockWithTimeout (int Timeout, char *file, int line) |
| void | Unlock () |
| Unlocks the semaphore. | |
| GSemaphore::GSemaphore | ( | char * | name = 0 |
) |
Constructor.
| name | Optional name for the semaphore |
| bool GSemaphore::Lock | ( | char * | file, | |
| int | line | |||
| ) |
Lock the semaphore, waiting forever
| file | The file name of the locker |
| line | The line number of the locker |
References LgiSleep.
Referenced by GView::Lock(), GDocumentEnv::OnDone(), and MailSmtp::Open().
| bool GSemaphore::LockWithTimeout | ( | int | Timeout, | |
| char * | file, | |||
| int | line | |||
| ) |
| Timeout | In ms |
| file | The file of the locker |
| line | The line number of the locker |
References LgiSleep.
Referenced by GView::Lock().
1.5.7.1