Branch: Tag:

2003-03-31

2003-03-31 18:20:14 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Backported some SWAP_OUT_THREAD() paranoia from Pike 7.5.

Rev: src/threads.h:1.118

1:   /* -  * $Id: threads.h,v 1.117 2003/01/08 18:11:03 mast Exp $ +  * $Id: threads.h,v 1.118 2003/03/31 18:20:14 grubba Exp $    */   #ifndef THREADS_H   #define THREADS_H
465:    (_tmp)->swapped=1; \    DO_IF_PROFILING( (_tmp)->time_base += gethrtime() ; ) \    SWAP_OUT_TRACE(_tmp); \ +  Pike_interpreter.thread_id = (struct object *) (ptrdiff_t) -1; \    } while(0)      #define SWAP_IN_THREAD(_tmp) do { \