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