]> pd.if.org Git - pdclib.old/blob - opt/pthreads/tss_delete.c
fwrite: output line buffered content as we go along
[pdclib.old] / opt / pthreads / tss_delete.c
1 #ifndef REGTEST
2 #include <threads.h>
3 #include <pthread.h>
4 #include <assert.h>
5
6 void tss_delete(tss_t key)
7 {
8     assert(pthread_key_delete(key) == 0);
9 }
10 #endif
11
12 #ifdef TEST
13 #include <_PDCLIB_test.h>
14
15 /* Tested in tss_get.c */
16 int main( void )
17 {
18     return TEST_RESULTS;
19 }
20
21 #endif