Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

semaphore.h File Reference

#include <errno.h>

Go to the source code of this file.

Defines

#define SEMAPHORE_H
#define PTW32_LEVEL_MAX   3
#define PTW32_LEVEL   PTW32_LEVEL_MAX
#define PTW32_DLLPORT   __declspec (dllimport)
#define _POSIX_SEMAPHORES

Typedefs

typedef unsigned int mode_t
typedef sem_t_ * sem_t

Functions

PTW32_DLLPORT int sem_init (sem_t *sem, int pshared, unsigned int value)
PTW32_DLLPORT int sem_destroy (sem_t *sem)
PTW32_DLLPORT int sem_trywait (sem_t *sem)
PTW32_DLLPORT int sem_wait (sem_t *sem)
PTW32_DLLPORT int sem_timedwait (sem_t *sem, const struct timespec *abstime)
PTW32_DLLPORT int sem_post (sem_t *sem)
PTW32_DLLPORT int sem_post_multiple (sem_t *sem, int count)
PTW32_DLLPORT int sem_open (const char *name, int oflag, mode_t mode, unsigned int value)
PTW32_DLLPORT int sem_close (sem_t *sem)
PTW32_DLLPORT int sem_unlink (const char *name)
PTW32_DLLPORT int sem_getvalue (sem_t *sem, int *sval)


Define Documentation

#define _POSIX_SEMAPHORES
 

Definition at line 112 of file semaphore.h.

#define PTW32_DLLPORT   __declspec (dllimport)
 

Definition at line 81 of file semaphore.h.

#define PTW32_LEVEL   PTW32_LEVEL_MAX
 

Definition at line 64 of file semaphore.h.

#define PTW32_LEVEL_MAX   3
 

Definition at line 61 of file semaphore.h.

#define SEMAPHORE_H
 

Definition at line 40 of file semaphore.h.


Typedef Documentation

typedef unsigned int mode_t
 

Definition at line 120 of file semaphore.h.

typedef struct sem_t_* sem_t
 

Definition at line 124 of file semaphore.h.


Function Documentation

PTW32_DLLPORT int sem_close sem_t sem  ) 
 

PTW32_DLLPORT int sem_destroy sem_t sem  ) 
 

PTW32_DLLPORT int sem_getvalue sem_t sem,
int *  sval
 

PTW32_DLLPORT int sem_init sem_t sem,
int  pshared,
unsigned int  value
 

PTW32_DLLPORT int sem_open const char *  name,
int  oflag,
mode_t  mode,
unsigned int  value
 

PTW32_DLLPORT int sem_post sem_t sem  ) 
 

PTW32_DLLPORT int sem_post_multiple sem_t sem,
int  count
 

PTW32_DLLPORT int sem_timedwait sem_t sem,
const struct timespec abstime
 

PTW32_DLLPORT int sem_trywait sem_t sem  ) 
 

PTW32_DLLPORT int sem_unlink const char *  name  ) 
 

PTW32_DLLPORT int sem_wait sem_t sem  ) 
 


Generated on Sun May 14 14:51:29 2006 by  doxygen 1.4.2