#include <pthread.h>
Go to the source code of this file.
Defines | |
#define | fv_thread_return void* |
#define | INITCRITICALSECTION(crit_section) pthread_mutex_init(&(crit_section),NULL); |
#define | DELETECRITICALSECTION(crit_section) pthread_mutex_destroy(&(crit_section)); |
#define | ENTERCRITICALSECTION(crit_section) pthread_mutex_lock (&(crit_section)); |
#define | LEAVECRITICALSECTION(crit_section) pthread_mutex_unlock(&(crit_section)); |
#define | INITSIGNAL(signal_var) pthread_cond_init(&(signal_var), NULL); |
#define | DELETESIGNAL(signal_var) pthread_cond_destroy(&(signal_var)); |
Typedefs | |
typedef pthread_t | fv_thread |
typedef pthread_t | fv_thread_id |
typedef void *(* | fv_thread_routine )(void *) |
typedef pthread_mutex_t | fv_critical_section |
typedef pthread_cond_t | fv_signal_t |
Functions | |
fv_thread | fv_start_thread (fv_thread_id *thread_id, fv_thread_routine func, void *data) |
void | fv_end_thread (fv_thread thread) |
void | fv_destroy_thread (fv_thread thread) |
void | fv_wait_for_threads (const fv_thread *threads, int num) |
int | fv_wait_for_wakeup (fv_signal_t *signal, fv_critical_section *critical) |
int | fv_wakeup (fv_signal_t *signal) |
Variables | |
int | utd_internal_error |
#define DELETECRITICALSECTION | ( | crit_section | ) | pthread_mutex_destroy(&(crit_section)); |
#define DELETESIGNAL | ( | signal_var | ) | pthread_cond_destroy(&(signal_var)); |
#define ENTERCRITICALSECTION | ( | crit_section | ) | pthread_mutex_lock (&(crit_section)); |
#define fv_thread_return void* |
#define INITCRITICALSECTION | ( | crit_section | ) | pthread_mutex_init(&(crit_section),NULL); |
#define INITSIGNAL | ( | signal_var | ) | pthread_cond_init(&(signal_var), NULL); |
#define LEAVECRITICALSECTION | ( | crit_section | ) | pthread_mutex_unlock(&(crit_section)); |
typedef pthread_mutex_t fv_critical_section |
typedef pthread_cond_t fv_signal_t |
typedef pthread_t fv_thread |
typedef pthread_t fv_thread_id |
typedef void*(* fv_thread_routine)(void *) |
fv_thread fv_start_thread | ( | fv_thread_id * | thread_id, | |
fv_thread_routine | func, | |||
void * | data | |||
) |
int fv_wait_for_wakeup | ( | fv_signal_t * | signal, | |
fv_critical_section * | critical | |||
) |
int fv_wakeup | ( | fv_signal_t * | signal | ) |