29 #ifndef __LIBFREEWRL_SYSTEM_THREADS_H__
30 #define __LIBFREEWRL_SYSTEM_THREADS_H__
47 #define DEF_THREAD(_t) pthread_t _t = (pthread_t)0
48 #define TEST_NULL_THREAD(_t) (_t == (pthread_t)0)
49 #define ID_THREAD(_t) ((unsigned int) _t)
50 #define ZERO_THREAD(_t) (_t = (pthread_t)0)
54 #define DEF_THREAD(_t) pthread_t _t = { NULL, 0 }
55 #define TEST_NULL_THREAD(_t) (_t.p == NULL)
56 #define ID_THREAD(_t) ((unsigned int) _t.p)
57 #define ZERO_THREAD(_t) { _t.p = NULL; }
60 extern pthread_t _THREAD_NULL_;