]> pd.if.org Git - pdclib/blob - platform/win32/functions/threads/tss_set.c
dos2unix
[pdclib] / platform / win32 / functions / threads / tss_set.c
1 #ifndef REGTEST
2 #include <threads.h>
3 #include <windows.h>
4
5 int tss_set(tss_t key, void *val)
6 {
7     if(TlsSetValue(key->_Key, val))
8         return thrd_success;
9     return thrd_error;
10 }
11 #endif
12
13 #ifdef TEST
14 #include "_PDCLIB_test.h"
15
16 /* Tested in tss_get.c */
17 int main( void )
18 {
19     return TEST_RESULTS;
20 }
21
22 #endif