#include <pthread.h>
#include <unistd.h>
Go to the source code of this file.
Data Structures | |
| struct | pthread_jailattr_t |
| pthread_jail_t attribute structure More... | |
| struct | pthread_jail_t |
| pthread_jail_t structure More... | |
Defines | |
| #define | PTHREAD_JAIL_INITIALIZER |
| static initializer for pthread_jail_t | |
Functions | |
| int | pthread_jail_init (pthread_jail_t *jail, const pthread_jailattr_t *attr) |
| initialize pthread_jail_t structure | |
| int | pthread_jail_destroy (pthread_jail_t *jail) |
| destroy pthread_jail_t structure | |
| int | pthread_jail_search (pthread_jail_t *jail) |
| only one can be searched at a time | |
| int | pthread_jail_visit (pthread_jail_t *jail) |
| multiple visitors at a time | |
| int | pthread_jail_leave (pthread_jail_t *jail) |
| leaving jail | |
| int | pthread_jail_lockdown (pthread_jail_t *jail) |
| no new visitors, wait until current visitors leave | |
| int | pthread_jail_release (pthread_jail_t *jail) |
| new visitors allowed | |
| int | pthread_jailattr_init (pthread_jailattr_t *attr) |
| initialize pthread_jail_t attribute structure | |
| int | pthread_jailattr_destroy (pthread_jailattr_t *attr) |
| destroy pthread_jail_t attribute structure | |
to enter the jail:
| #define PTHREAD_JAIL_INITIALIZER |
Value:
{ PTHREAD_MUTEX_INITIALIZER, \
PTHREAD_COND_INITIALIZER, PTHREAD_COND_INITIALIZER, \
0, 0, 0, 0, 0 }
| int pthread_jail_destroy | ( | pthread_jail_t * | jail | ) |
destroy pthread_jail_t structure
| jail | pointer to pthread_jail_t structure |
| int pthread_jail_init | ( | pthread_jail_t * | jail, | |
| const pthread_jailattr_t * | attr | |||
| ) |
initialize pthread_jail_t structure
| jail | pointer to pthread_jail_t structure | |
| attr | pointer to pthread_jail_t attribute structure |
| int pthread_jail_leave | ( | pthread_jail_t * | jail | ) |
leaving jail
| jail | pointer to pthread_jail_t structure |
| int pthread_jail_lockdown | ( | pthread_jail_t * | jail | ) |
no new visitors, wait until current visitors leave
| jail | pointer to pthread_jail_t structure |
| int pthread_jail_release | ( | pthread_jail_t * | jail | ) |
new visitors allowed
| jail | pointer to pthread_jail_t structure |
| int pthread_jail_search | ( | pthread_jail_t * | jail | ) |
only one can be searched at a time
| jail | pointer to pthread_jail_t structure |
| int pthread_jail_visit | ( | pthread_jail_t * | jail | ) |
multiple visitors at a time
| jail | pointer to pthread_jail_t structure |
| int pthread_jailattr_destroy | ( | pthread_jailattr_t * | attr | ) |
destroy pthread_jail_t attribute structure
| attr | pointer to pthread_jail_t attribute structure |
| int pthread_jailattr_init | ( | pthread_jailattr_t * | attr | ) |
initialize pthread_jail_t attribute structure
| attr | pointer to pthread_jail_t attribute structure |
1.5.1