Skip to content
Snippets Groups Projects
Commit a70bd02c authored by Niels Möller's avatar Niels Möller
Browse files

Added th_self() macro

Rev: src/threads.h:1.7
parent 10cdc5fd
No related branches found
No related tags found
No related merge requests found
...@@ -28,6 +28,7 @@ extern MUTEX_T interpreter_lock; ...@@ -28,6 +28,7 @@ extern MUTEX_T interpreter_lock;
#define th_create(ID,fun,arg) pthread_create(ID,&pattr,fun,arg) #define th_create(ID,fun,arg) pthread_create(ID,&pattr,fun,arg)
#define th_exit(foo) pthread_exit(foo) #define th_exit(foo) pthread_exit(foo)
#define th_self() pthread_self()
#define COND_T pthread_cond_t #define COND_T pthread_cond_t
#define co_init(X) pthread_cond_init((X), 0) #define co_init(X) pthread_cond_init((X), 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment