diff --git a/src/threads.h b/src/threads.h index 7f4bb332675c8f53c2486a16d5ed0dab580235a4..74a73bb57ecbf47cef11c583a62916d2eeb97918 100644 --- a/src/threads.h +++ b/src/threads.h @@ -28,6 +28,7 @@ extern MUTEX_T interpreter_lock; #define th_create(ID,fun,arg) pthread_create(ID,&pattr,fun,arg) #define th_exit(foo) pthread_exit(foo) +#define th_self() pthread_self() #define COND_T pthread_cond_t #define co_init(X) pthread_cond_init((X), 0)