37 #ifndef CAEN_INCLUDE_TYPES_CAENTHREADTYPES_H_ 38 #define CAEN_INCLUDE_TYPES_CAENTHREADTYPES_H_ 52 #include <semaphore.h> 56 #ifdef _WIN32 // Windows 92 CRITICAL_SECTION _critical_section;
119 #endif // CAEN_INCLUDE_TYPES_CAENTHREADTYPES_H_ c_conditionvariable_t _cond
A condition variable.
pthread_cond_t c_conditionvariable_t
Condition variable type.
c_thread_t _holding_thread_id
pthread_mutex_t _mutex
On Linux a pthread_cond_t is use with a pthread_mutex_t.
sem_t c_semaphore_t
Semaphore type.
pthread_mutex_t c_mutex_t
Mutex type.
int(* c_tstart_t)(void *)
Thread function type, as defined in C11.
CAENThread_RetCode_t
Return values inspired to C11 thread.h.
Needed because a condition variable on Linux is associated with a mutex, while on Windows it is assoc...