The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Loading...
Searching...
No Matches
Macros | Typedefs | Functions
semaphore.h File Reference

API for POSIX semaphores in mmapped memory. More...

#include <freeradius-devel/util/talloc.h>
+ Include dependency graph for semaphore.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SEM_WAIT_INTR(_x)   do {if (sem_wait(_x) == 0) break;} while (errno == EINTR)
 
#define SEMAPHORE_LOCKED   (0)
 

Typedefs

typedef sem_t fr_sem_t
 

Functions

fr_sem_tfr_sem_alloc (void)
 
void fr_sem_free (fr_sem_t *sem)
 

Detailed Description

API for POSIX semaphores in mmapped memory.

Definition in file semaphore.h.

Macro Definition Documentation

◆ SEM_WAIT_INTR

#define SEM_WAIT_INTR (   _x)    do {if (sem_wait(_x) == 0) break;} while (errno == EINTR)

Definition at line 56 of file semaphore.h.

◆ SEMAPHORE_LOCKED

#define SEMAPHORE_LOCKED   (0)

Definition at line 36 of file semaphore.h.

Typedef Documentation

◆ fr_sem_t

typedef sem_t fr_sem_t

Definition at line 53 of file semaphore.h.

Function Documentation

◆ fr_sem_alloc()

fr_sem_t * fr_sem_alloc ( void  )

Definition at line 30 of file semaphore.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fr_sem_free()

void fr_sem_free ( fr_sem_t sem)

Definition at line 50 of file semaphore.c.

+ Here is the caller graph for this function: