summaryrefslogtreecommitdiff
path: root/src/threads/tss_get.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-08-20 12:54:51 -0400
committerJakob Kaivo <jkk@ung.org>2019-08-20 12:54:51 -0400
commitc9436d428586d501de341838b591bd59d29aa0d7 (patch)
tree816287ac4b8eeec93e463b0238e9fad934cedb57 /src/threads/tss_get.c
parent17c366e61acef079dd636a7280f46bab88d50a6f (diff)
initial version
Diffstat (limited to 'src/threads/tss_get.c')
-rw-r--r--src/threads/tss_get.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/threads/tss_get.c b/src/threads/tss_get.c
new file mode 100644
index 00000000..68484fbe
--- /dev/null
+++ b/src/threads/tss_get.c
@@ -0,0 +1,7 @@
+#include <threads.h>
+#include <pthread.h>
+
+void *tss_get(tss_t key)
+{
+ return pthread_getspecific(key);
+}