#define
| FIFTYONE_DEGREES_THREAD pthread_t
|
#define
| FIFTYONE_DEGREES_SIGNAL_CREATE(s) s = fiftyoneDegreesSignalCreate()
Creates a new signal that can be used to wait for other operations to complete before continuing. More...
|
#define
| FIFTYONE_DEGREES_SIGNAL_CLOSE(s) fiftyoneDegreesSignalClose(s)
Frees the handle provided to the macro. More...
|
#define
| FIFTYONE_DEGREES_SIGNAL_SET(s) fiftyoneDegreesSignalSet(s)
Signals a thread waiting for the signal to proceed. More...
|
#define
| FIFTYONE_DEGREES_SIGNAL_WAIT(s) fiftyoneDegreesSignalWait(s)
Waits for the signal to become set by another thread. More...
|
#define
| FIFTYONE_DEGREES_MUTEX_CREATE(m) fiftyoneDegreesMutexCreate(&m)
Creates a new mutex at the pointer provided. More...
|
#define
| FIFTYONE_DEGREES_MUTEX_CLOSE(m) fiftyoneDegreesMutexClose(&m)
Frees the mutex at the pointer provided. More...
|
#define
| FIFTYONE_DEGREES_MUTEX_LOCK(m) fiftyoneDegreesMutexLock(m)
Locks the mutex at the pointer provided. More...
|
#define
| FIFTYONE_DEGREES_MUTEX_UNLOCK(m) fiftyoneDegreesMutexUnlock(m)
Unlocks the mutex at the pointer provided. More...
|
#define
| FIFTYONE_DEGREES_MUTEX_VALID(m) fiftyoneDegreesMutexValid(m)
Returns true if the mutex is valid. More...
|
#define
| FIFTYONE_DEGREES_THREAD_CREATE(t, m, s) pthread_create(&t, NULL, m, s)
Creates a new thread with the following parameters: More...
|
#define
| FIFTYONE_DEGREES_THREAD_JOIN(t) pthread_join(t, NULL)
Joins the thread provided to the current thread waiting indefinitely for the operation to complete. More...
|
#define
| FIFTYONE_DEGREES_THREAD_CLOSE(t)
Closes the thread passed to the macro. More...
|
#define
| FIFTYONE_DEGREES_THREAD_EXIT pthread_exit(NULL)
Exits the calling thread.
|
#define
| FIFTYONE_DEGREES_INTERLOCK_INC(v) (__atomic_add_fetch(v, 1, __ATOMIC_SEQ_CST))
Increments the value and returns the final value. More...
|
#define
| FIFTYONE_DEGREES_INTERLOCK_DEC(v) (__atomic_add_fetch(v, -1, __ATOMIC_SEQ_CST))
Decrements the value and returns the final value. More...
|
#define
| FIFTYONE_DEGREES_INTERLOCK_EXCHANGE(d, e, c) __sync_val_compare_and_swap(&d,c,e)
Replaces the destination value with the exchange value, only if the destination value matched the comparand. More...
|
#define
| FIFTYONE_DEGREES_INTERLOCK_EXCHANGE_64(d, e, c) FIFTYONE_DEGREES_INTERLOCK_EXCHANGE(d,e,c)
|
#define
| FIFTYONE_DEGREES_INTERLOCK_EXCHANGE_PTR(d, e, c) FIFTYONE_DEGREES_INTERLOCK_EXCHANGE(d,e,c)
Replaces the destination pointer with the exchange pointer, only if the destination pointer matched the comparand. More...
|
#define
| FIFTYONE_DEGREES_INTERLOCK_EXCHANGE_DW(d, e, c)
|