#include <pthread.h>
#include <unistd.h>
Go to the source code of this file.
Data Structures | |
| struct | pthread_fifo_mutexattr_t |
| pthread_fifo_mutex_t attribute structure More... | |
| struct | fifo_data_t |
| pthread_fifo_mutex_t data structure More... | |
| struct | pthread_fifo_mutex_t |
| pthread_fifo_mutex_t structure More... | |
Defines | |
| #define | PTHREAD_FIFO_MUTEX_NONBLOCKING PTHREAD_FIFO_MUTEX_NONBLOCKING |
| non-blocking enumeration | |
| #define | PTHREAD_FIFO_MUTEX_BLOCKING PTHREAD_FIFO_MUTEX_BLOCKING |
| blocking enumeration | |
| #define | PTHREAD_FIFO_MUTEX_DEFAULT PTHREAD_FIFO_MUTEX_DEFAULT |
| default blocking enumeration | |
Enumerations | |
| enum | { PTHREAD_FIFO_MUTEX_NONBLOCKING, PTHREAD_FIFO_MUTEX_BLOCKING, PTHREAD_FIFO_MUTEX_DEFAULT = PTHREAD_FIFO_MUTEX_BLOCKING } |
| enumeration for fifo objects More... | |
Functions | |
| int | pthread_fifo_mutex_init (pthread_fifo_mutex_t *mutex, const pthread_fifo_mutexattr_t *attr, const int length) |
| initialize pthread_fifo_mutex_t structure | |
| int | pthread_fifo_mutex_destroy (pthread_fifo_mutex_t *mutex) |
| destroy pthread_fifo_mutex_t structure | |
| int | pthread_fifo_mutex_lock (pthread_fifo_mutex_t *mutex) |
| suspend calling thread until lock is available | |
| int | pthread_fifo_mutex_trylock (pthread_fifo_mutex_t *mutex) |
| if mutex is not lock then obtain lock | |
| int | pthread_fifo_mutex_timedlock (pthread_fifo_mutex_t *mutex, const struct timespec *abstime) |
| if mutex is not lock then obtain lock or return after abstime | |
| int | pthread_fifo_mutex_unlock (pthread_fifo_mutex_t *mutex) |
| unlock mutex | |
| int | pthread_fifo_mutexattr_init (pthread_fifo_mutexattr_t *attr) |
| initialize pthread_fifo_mutex_t attribute structure | |
| int | pthread_fifo_mutexattr_destroy (pthread_fifo_mutexattr_t *attr) |
| destroy pthread_fifo_mutex_t attribute structure | |
| int | pthread_fifo_mutexattr_getblock (const pthread_fifo_mutexattr_t *attr, int *block) |
| assign block the current blocking attribute | |
| int | pthread_fifo_mutexattr_setblock (pthread_fifo_mutexattr_t *attr, const int block) |
| assign the current blocking attribute | |
| anonymous enum |
| int pthread_fifo_mutex_destroy | ( | pthread_fifo_mutex_t * | mutex | ) |
destroy pthread_fifo_mutex_t structure
| mutex | pointer to pthread_fifo_mutex_t structure |
| int pthread_fifo_mutex_init | ( | pthread_fifo_mutex_t * | mutex, | |
| const pthread_fifo_mutexattr_t * | attr, | |||
| const int | length | |||
| ) |
initialize pthread_fifo_mutex_t structure
| mutex | pointer to pthread_fifo_mutex_t structure | |
| attr | pointer to pthread_fifo_mutex_t attribute structure | |
| length | maximum length of fifo |
| int pthread_fifo_mutex_lock | ( | pthread_fifo_mutex_t * | mutex | ) |
suspend calling thread until lock is available
| mutex | pointer to pthread_fifo_mutex_t structure |
| int pthread_fifo_mutex_timedlock | ( | pthread_fifo_mutex_t * | mutex, | |
| const struct timespec * | abstime | |||
| ) |
if mutex is not lock then obtain lock or return after abstime
| mutex | pointer to pthread_fifo_mutex_t structure | |
| abstime | pointer to timespec structure |
| int pthread_fifo_mutex_trylock | ( | pthread_fifo_mutex_t * | mutex | ) |
if mutex is not lock then obtain lock
| mutex | pointer to pthread_fifo_mutex_t structure |
| int pthread_fifo_mutex_unlock | ( | pthread_fifo_mutex_t * | mutex | ) |
unlock mutex
| mutex | pointer to pthread_fifo_mutex_t structure |
| int pthread_fifo_mutexattr_destroy | ( | pthread_fifo_mutexattr_t * | attr | ) |
destroy pthread_fifo_mutex_t attribute structure
| attr | pointer to pthread_fifo_mutex_t structure |
| int pthread_fifo_mutexattr_getblock | ( | const pthread_fifo_mutexattr_t * | attr, | |
| int * | block | |||
| ) |
assign block the current blocking attribute
| attr | pointer to pthread_fifo_mutex_t structure | |
| block | pointer to blocking attribute |
| int pthread_fifo_mutexattr_init | ( | pthread_fifo_mutexattr_t * | attr | ) |
initialize pthread_fifo_mutex_t attribute structure
| attr | pointer to pthread_fifo_mutex_t structure |
| int pthread_fifo_mutexattr_setblock | ( | pthread_fifo_mutexattr_t * | attr, | |
| const int | block | |||
| ) |
assign the current blocking attribute
| attr | pointer to pthread_fifo_mutex_t structure | |
| block | blocking attribute |
1.5.1