semaphore.h File Reference

API published in:
API deprecated in:


#include <_ansi.h>
#include <sys/types.h>

Go to the source code of this file.


Defines

#define  SEM_FAILED   -1

Typedefs

typedef _sem_t *  sem_t

Functions

IMPORT_C int  sem_init (sem_t *sem, int pshared, unsigned int value)
IMPORT_C int  sem_destroy (sem_t *sem)
IMPORT_C int  sem_trywait (sem_t *sem)
IMPORT_C int  sem_wait (sem_t *sem)
IMPORT_C int  sem_timedwait (sem_t *sem, const struct timespec *abstime)
IMPORT_C int  sem_post (sem_t *sem)
IMPORT_C int  sem_getvalue (sem_t *sem, int *sval)

Define Documentation

#define SEM_FAILED   -1
 

Typedef Documentation

typedef struct _sem_t* sem_t
 

Function Documentation

IMPORT_C int sem_destroy sem_t sem  ) 
 
IMPORT_C int sem_getvalue sem_t sem,
int *  sval
 
IMPORT_C int sem_init sem_t sem,
int  pshared,
unsigned int  value
 
IMPORT_C int sem_post sem_t sem  ) 
 
IMPORT_C int sem_timedwait sem_t sem,
const struct timespec abstime
 
IMPORT_C int sem_trywait sem_t sem  ) 
 
IMPORT_C int sem_wait sem_t sem  ) 
 

Copyright © Nokia Corporation 2001-2008
Back to top