Main Page   Modules   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

/projects/cubeos/src_current/kernel/seminl.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Compounds

struct  sem_s
 contains all data about a semaphore. More...


Defines

#define sem_signal(x)   sem_post(x)
 alias to sem_post(), for thomas. More...

#define sem_trywait(x)   (x.c<0)
 checks, if a sem_wait() operation might block. More...

#define sem_getvalue(x, i)   (*i=x.c)
 returns the semaphore counter. More...


Typedefs

typedef sem_s sem_t
 contains all data about a semaphore. More...


Functions

void sem_post (sem_t x)
 post operation on a semaphore. More...

void sem_wait (sem_t x)
 wait operation on a semaphore. More...

int sem_init (sem_t x, int i, int v)
 prepares a semaphore. More...

int sem_destroy (sem_t x)
 destroys a semaphore and releases all threads waiting on it. More...


Detailed Description

CubeOS/POSIX Semaphores: complex semaphores that are thread-aware

Definition in file seminl.h.


Define Documentation

#define sem_getvalue x,
     (*i=x.c)
 

returns the semaphore counter.

Definition at line 95 of file seminl.h.

#define sem_signal      sem_post(x)
 

alias to sem_post(), for thomas.

Definition at line 60 of file seminl.h.

#define sem_trywait      (x.c<0)
 

checks, if a sem_wait() operation might block.

Definition at line 94 of file seminl.h.


Generated on Thu Feb 20 15:38:54 2003 for cubeOS by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002