37 #ifndef CAEN_INCLUDE_CAENTHREAD_H_ 38 #define CAEN_INCLUDE_CAENTHREAD_H_ 228 #endif // CAEN_INCLUDE_CAENTHREAD_H_ int32_t c_ticket_lock(c_ticket_t *ticket)
int32_t c_mutex_lock(c_mutex_t *m)
int32_t c_semaphore_destroy(c_semaphore_t *s)
int32_t c_condition_unlock(c_condition_t *cond)
int32_t c_semaphore_post(c_semaphore_t *s)
int32_t c_mutex_init(c_mutex_t *m)
int32_t c_semaphore_wait(c_semaphore_t *s, int32_t ms)
int32_t c_condition_broadcast(c_condition_t *cond)
#define c_releases_lock_on_success(m)
Main header and generic tools.
int32_t c_mutex_destroy(c_mutex_t *m)
int32_t c_semaphore_init(c_semaphore_t *s)
int32_t c_ticket_init(c_ticket_t *ticket)
int32_t c_thread_create(c_thread_t *thr, c_tstart_t func, void *arg)
int32_t c_sleep(uint32_t ms)
int32_t c_ticket_unlock(c_ticket_t *ticket)
#define CAEN_UTILITY_DLLAPI
int32_t c_condition_lock(c_condition_t *cond)
c_thread_t c_thread_current(void)
int32_t c_thread_detach(c_thread_t thr)
c_thread_t c_thread_invalid()
void c_thread_exit(int res)
#define c_acquires_lock_on_success(m)
int32_t c_thread_join(c_thread_t thr, int *res)
int32_t c_ticket_delete(c_ticket_t *ticket)
int32_t c_mutex_trylock(c_mutex_t *m)
void c_thread_yield(void)
sem_t c_semaphore_t
Semaphore type.
int32_t c_condition_destroy(c_condition_t *cond)
int32_t c_condition_wait(c_condition_t *cond, int32_t ms)
int32_t c_condition_init(c_condition_t *cond)
pthread_mutex_t c_mutex_t
Mutex type.
int32_t c_semaphore_multi_init(c_semaphore_t *s)
int(* c_tstart_t)(void *)
Thread function type, as defined in C11.
int32_t c_thread_setaffinity(c_thread_t thr, uint64_t mask)
int32_t c_thread_sleep(const struct timespec *duration, struct timespec *remaining)
int32_t c_mutex_unlock(c_mutex_t *m)
bool c_thread_equal(c_thread_t lhs, c_thread_t rhs)
int32_t c_condition_signal_one(c_condition_t *cond)
int32_t c_thread_timedjoin(c_thread_t thr, int *res, int32_t timeout_ms)
Needed because a condition variable on Linux is associated with a mutex, while on Windows it is assoc...
Definitions and types for CAENThreadTypes.h.