|
CAEN Utility
2.0.2
Utilities for CAEN projects
|
Definitions and types for CAENThreadTypes.h. More...
#include <stdbool.h>#include <stdint.h>#include <time.h>#include <semaphore.h>#include <pthread.h>Go to the source code of this file.
Data Structures | |
| struct | _c_thread_t |
| struct | c_condition_t |
| Needed because a condition variable on Linux is associated with a mutex, while on Windows it is associated with a critical section. More... | |
| struct | c_ticket_t |
| Ticket type. More... | |
Typedefs | |
| typedef pthread_mutex_t | c_mutex_t |
| Mutex type. More... | |
| typedef sem_t | c_semaphore_t |
| Semaphore type. More... | |
| typedef pthread_cond_t | c_conditionvariable_t |
| Condition variable type. More... | |
| typedef int(* | c_tstart_t) (void *) |
| Thread function type, as defined in C11. More... | |
| typedef struct _c_thread_t | c_thread_t |
| Thread type. More... | |
Enumerations | |
| enum | CAENThread_RetCode_t { CAENThread_RetCode_Success = 0, CAENThread_RetCode_Nomem = -1, CAENThread_RetCode_Timedout = -2, CAENThread_RetCode_Busy = -3, CAENThread_RetCode_Error = -4 } |
| Return values inspired to C11 thread.h. More... | |
Definitions and types for CAENThreadTypes.h.
Definition in file CAENThreadTypes.h.
| typedef pthread_mutex_t c_mutex_t |
Mutex type.
Definition at line 75 of file CAENThreadTypes.h.
| typedef sem_t c_semaphore_t |
Semaphore type.
Definition at line 77 of file CAENThreadTypes.h.
| typedef pthread_cond_t c_conditionvariable_t |
Condition variable type.
Definition at line 79 of file CAENThreadTypes.h.
| typedef int(* c_tstart_t) (void *) |
Thread function type, as defined in C11.
Definition at line 81 of file CAENThreadTypes.h.
| typedef struct _c_thread_t c_thread_t |
Thread type.
Definition at line 83 of file CAENThreadTypes.h.
| enum CAENThread_RetCode_t |
Return values inspired to C11 thread.h.
| Enumerator | |
|---|---|
| CAENThread_RetCode_Success | |
| CAENThread_RetCode_Nomem | |
| CAENThread_RetCode_Timedout | |
| CAENThread_RetCode_Busy | |
| CAENThread_RetCode_Error | |
Definition at line 107 of file CAENThreadTypes.h.