Branch: Tag:

2000-10-03

2000-10-03 19:13:24 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Now survives without pthread_kill(3T).

Rev: src/threads.h:1.104

1:   /* -  * $Id: threads.h,v 1.103 2000/08/11 10:46:22 grubba Exp $ +  * $Id: threads.h,v 1.104 2000/10/03 19:13:24 grubba Exp $    */   #ifndef THREADS_H   #define THREADS_H
117:   #define th_create_small(ID,fun,arg) pthread_create(ID,&small_pattr,fun,arg)   #define th_exit(foo) pthread_exit(foo)   #define th_self() pthread_self() + #ifdef HAVE_PTHREAD_KILL   #define th_kill(ID,sig) pthread_kill((ID),(sig)) -  + #else /* !HAVE_PTHREAD_KILL */ + /* MacOS X (aka Darwin) doesn't have pthread_kill. */ + #define th_kill(ID,sig) + #endif /* HAVE_PTHREAD_KILL */   #define th_join(ID,res) pthread_join((ID),(res))   #ifdef HAVE_PTHREAD_COND_INIT   #define COND_T pthread_cond_t