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

Patch for Apple Cthreads



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