Threading related functions. More...
#include "Thread.h"
#include "Log.h"
#include "StackTrace.h"
#include <errno.h>
#include <unistd.h>
#include <sys/time.h>
#include <fcntl.h>
#include <stdio.h>
#include <sys/stat.h>
#include <limits.h>
#include <stdlib.h>
#include "OsWrapper.h"
Go to the source code of this file.
Macros | |
#define | USE_TRYWAIT |
Functions | |
int | Thread_check_sem (sem_type sem) |
cond_type | Thread_create_cond (int *rc) |
mutex_type | Thread_create_mutex (int *rc) |
sem_type | Thread_create_sem (int *rc) |
int | Thread_destroy_cond (cond_type condvar) |
int | Thread_destroy_mutex (mutex_type mutex) |
int | Thread_destroy_sem (sem_type sem) |
thread_id_type | Thread_getid (void) |
int | Thread_lock_mutex (mutex_type mutex) |
int | Thread_post_sem (sem_type sem) |
int | Thread_signal_cond (cond_type condvar) |
thread_type | Thread_start (thread_fn fn, void *parameter) |
int | Thread_unlock_mutex (mutex_type mutex) |
int | Thread_wait_cond (cond_type condvar, int timeout) |
int | Thread_wait_sem (sem_type sem, int timeout) |
Threading related functions.
Used to create platform independent threading functions
Definition in file Thread.c.
#define USE_TRYWAIT |
int Thread_check_sem | ( | sem_type | sem | ) |
cond_type Thread_create_cond | ( | int * | rc | ) |
mutex_type Thread_create_mutex | ( | int * | rc | ) |
sem_type Thread_create_sem | ( | int * | rc | ) |
int Thread_destroy_cond | ( | cond_type | condvar | ) |
int Thread_destroy_mutex | ( | mutex_type | mutex | ) |
int Thread_destroy_sem | ( | sem_type | sem | ) |
thread_id_type Thread_getid | ( | void | ) |
int Thread_lock_mutex | ( | mutex_type | mutex | ) |
int Thread_post_sem | ( | sem_type | sem | ) |
int Thread_signal_cond | ( | cond_type | condvar | ) |
thread_type Thread_start | ( | thread_fn | fn, |
void * | parameter | ||
) |
int Thread_unlock_mutex | ( | mutex_type | mutex | ) |
int Thread_wait_cond | ( | cond_type | condvar, |
int | timeout | ||
) |