Branch: Tag:

1998-07-16

1998-07-16 23:46:15 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

init_threads_disable() might actually work now...

Rev: src/threads.c:1.76

1:   #include "global.h" - RCSID("$Id: threads.c,v 1.75 1998/07/10 15:52:06 grubba Exp $"); + RCSID("$Id: threads.c,v 1.76 1998/07/16 23:46:15 hubbe Exp $");      int num_threads = 1;   int threads_disabled = 0;
207:       THREADS_FPRINTF(0, (stderr, "init_threads_disable(): threads_disabled:%d\n",    threads_disabled)); +  +  if(live_threads) +  { +  SWAP_OUT_CURRENT_THREAD();    while (live_threads) {    THREADS_FPRINTF(0,    (stderr,
214:    live_threads));    co_wait(&live_threads_change, &interpreter_lock);    } +  SWAP_IN_CURRENT_THREAD();    } -  + }      void exit_threads_disable(struct object *o)   {