#include <unistd.h>
#include <sys/time.h>
#include <pthread.h>
#include "p99_defarg.h"
#include "p99_atomic.h"
Go to the source code of this file.
|
typedef struct p99_tss | p99_tss |
|
typedef void(* | tss_dtor_t) (void *) |
| which is the function pointer type void (*)(void*) , used for a destructor for a thread-specific storage pointer More...
|
|
typedef typedef **addtogroup threads C11 thread emulation on top of POSIX threads ****This is a relatively straightforward implementation of the C11 **thread model on top of POSIX threads The main difficulty this presents **is that the thread entry function signature differs between the **two C11 thread returns an< code > int</code > whereas POSIX returns **a< code > void *</code > ****You can find the thread management interfaces through the **documentation of the type ::thrd_t ****remark In addition to POSIX threads this implementation needs **some C11 atomic operations for initialization via ::call_once and **status communication ****struct tss_t | tss_t |
|