Commit 88b55cd1 authored by Jens Gustedt's avatar Jens Gustedt
Browse files

only define tss_t and functions if we don't have threads.h

parent 090a3424
......@@ -21,6 +21,8 @@
#include "p99_defarg.h"
#include "p99_atomic.h"
#if !p99_has_feature(threads_h)
/**
** @addtogroup threads C11 thread emulation on top of POSIX threads
**
......@@ -180,6 +182,9 @@ int tss_set(tss_t p00_key, void *p00_val) {
return pthread_setspecific(P99_ENC(p00_key), p00_val) ? thrd_error : thrd_success;
}
#endif
/**
** @brief A stub structure to hold a thread local variable if
** ::thread_local is not available.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment