Guest User

Untitled

a guest
Oct 20th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #define THREAD(thread_id, fun, ...) \
  2. __extension__ pthread_create(thread_id, NULL, ({ \
  3. void *func() { \
  4. fun(__VA_ARGS__); \
  5. return NULL; \
  6. } \
  7. func;\
  8. }), NULL)
Add Comment
Please, Sign In to add comment