Branch: Tag:

2000-04-14

2000-04-14 17:44:45 by Martin Stjernholm <mast@lysator.liu.se>

Fix for change of Pike_in_gc.

Rev: src/threads.h:1.80

1:   /* -  * $Id: threads.h,v 1.79 2000/04/14 15:23:45 mast Exp $ +  * $Id: threads.h,v 1.80 2000/04/14 17:44:45 mast Exp $    */   #ifndef THREADS_H   #define THREADS_H
469:    DO_IF_DEBUG({ \    if(thread_for_id(th_self()) != thread_id) \    fatal("thread_for_id() (or thread_id) failed! %p != %p\n",thread_for_id(th_self()),thread_id); \ -  if (Pike_in_gc == 1) \ +  if (Pike_in_gc == 1 || Pike_in_gc == 2) \    fatal("Threads allowed during garbage collection.\n"); \    }) \    if(num_threads > 1 && !threads_disabled) { \
504:    DO_IF_DEBUG({ \    if(thread_for_id(th_self()) != thread_id) \    fatal("thread_for_id() (or thread_id) failed! %p != %p\n",thread_for_id(th_self()),thread_id); \ -  if (Pike_in_gc == 1) \ +  if (Pike_in_gc == 1 || Pike_in_gc == 2) \    fatal("Threads allowed during garbage collection.\n"); \    }) \    if(num_threads > 1 && !threads_disabled) { \