#include <pthread.h>
Go to the source code of this file.
Data Structures | |
struct | sem_t |
Defines | |
#define | mutex_t pthread_mutex_t |
#define | mutex_create(x) (void)pthread_mutex_init((x),0) |
#define | mutex_destroy (void)pthread_mutex_destroy |
#define | mutex_acquire (void)pthread_mutex_lock |
#define | mutex_release (void)pthread_mutex_unlock |
#define | cv_t pthread_cond_t |
#define | cv_create(x) pthread_cond_init((x),0) |
#define | cv_destroy pthread_cond_destroy |
#define | cv_signal pthread_cond_signal |
#define | cv_wait pthread_cond_wait |
Typedefs | |
typedef void * | thread_t |
Functions | |
thread_t | thread_create (void *(*thread_proc)(void *), void *arg) |
Create a new thread of execution. | |
void * | thread_wait (thread_t th) |
Wait for a thread to terminate. | |
int | sem_create (sem_t *sp, int count) |
Create an inter-thread semaphore object. | |
void | sem_destroy (sem_t *sp) |
Destroy an inter-thread semaphore object. | |
void | sem_wait (sem_t *sp) |
Wait for an inter-thread semaphore signal. | |
void | sem_signal (sem_t *sp, int count) |
Signal an inter-thread semaphore. |
Definition in file xdasd_thread.h.