Implements mutex semaphore in mmap'ed file. More...
#include "../params.h"
Go to the source code of this file.
Classes | |
struct | semaphore |
Defines | |
#define | SEM_LOCKING_REGION_SIZE (4) |
Typedefs | |
typedef struct semaphore | semaphore_t |
Functions | |
void | semaphore_close (semaphore_t *semap, int &fd) |
semaphore_t * | semaphore_create (const char *semaphore_name, int &fd) |
semaphore_t * | semaphore_open (const char *semaphore_name, int &fd) |
void | semaphore_post (semaphore_t *semap) |
bool | semaphore_wait (semaphore_t *semap, unsigned long timeout=0) |
Implements mutex semaphore in mmap'ed file.
Definition in file sem.h.