nfs-ganesha 1.4
Classes | Typedefs | Functions

SemN.h File Reference

#include <pthread.h>
#include <semaphore.h>

Go to the source code of this file.

Classes

struct  semaphore

Typedefs

typedef struct semaphore semaphore_t

Functions

int semaphore_init (semaphore_t *sem, unsigned int value)
int semaphore_destroy (semaphore_t *sem)
void semaphore_P (semaphore_t *sem)
void semaphore_V (semaphore_t *sem)

Typedef Documentation

typedef struct semaphore semaphore_t

Function Documentation

int semaphore_destroy ( semaphore_t sem)

Destroys a semaphore.

Definition at line 84 of file SemN.c.

int semaphore_init ( semaphore_t sem,
unsigned int  value 
)

Initializes a semaphore.

Definition at line 74 of file SemN.c.

void semaphore_P ( semaphore_t sem)

Takes a token.

Definition at line 93 of file SemN.c.

void semaphore_V ( semaphore_t sem)

Give back a token.

Definition at line 98 of file SemN.c.