Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jens Gustedt
P99 - macros and functions for C99
Commits
88b55cd1
Commit
88b55cd1
authored
Jul 24, 2014
by
Jens Gustedt
Browse files
only define tss_t and functions if we don't have threads.h
parent
090a3424
Changes
1
Hide whitespace changes
Inline
Side-by-side
p99/p99_tss.h
View file @
88b55cd1
...
...
@@ -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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment