Branch: Tag:

2001-11-26

2001-11-26 14:58:54 by Henrik Grubbström (Grubba) <grubba@grubba.org>

More threads_disabled fixes.

Rev: src/threads.c:1.176

1:   #include "global.h" - RCSID("$Id: threads.c,v 1.175 2001/11/12 15:59:11 mast Exp $"); + RCSID("$Id: threads.c,v 1.176 2001/11/26 14:58:54 grubba Exp $");      PMOD_EXPORT int num_threads = 1;   PMOD_EXPORT int threads_disabled = 0;
767:    remove_callback(threads_evaluator_callback);    threads_evaluator_callback=0;    } +  /* FIXME: What about threads_disable? */    mt_unlock_interpreter();    th_exit(0);    /* NOT_REACHED, but removes a warning */
1393:   {    struct thread_state *th=THIS_THREAD;    +  if (threads_disabled) { +  Pike_error("Cannot wait for threads when threads are disabled!\n"); +  } +     SWAP_OUT_CURRENT_THREAD();       while(th->status != THREAD_EXITED)