[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Patch for Apple Cthreads



I would like to generize the Mach Cthreads implementation...

Do all Cthread implementations require PTHREAD_PREEMPTIVE defined?
Or
Is this define only required by Apple's implementation of Mach Cthreads?

I would like to localize such settings in platform/*/Make-platform when
possible.

Kurt

At 10:13 AM 8/28/98 +1000, Luke Howard wrote:
>
>In lthread.h, in the THREAD_NEXT_CTHREADS stanza, you should define threads
>as being preemptive (as they are).
>
>*** lthread.h   Fri Aug 28 10:08:54 1998
>--- lthread.h.orig      Fri Aug 28 10:08:39 1998
>***************
>*** 7,14 ****
>
>  #define _THREAD
>
>- #define PTHREAD_PREEMPTIVE      1
>-
>  #include <mach/cthreads.h>
>
>  typedef cthread_fn_t  VFP;
>--- 7,12 ----
>
>Otherwise, slapd spins in select() (as it has to have a zero timeout).
>
>
>
>-- Luke
>
>
>