Branch: Tag:

1999-01-21

1999-01-21 20:45:48 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Applied bugfix from Pike 0.7 (threads.c 1.85).

Rev: src/threads.c:1.86

1:   #include "global.h" - RCSID("$Id: threads.c,v 1.85 1998/11/22 11:03:22 hubbe Exp $"); + RCSID("$Id: threads.c,v 1.86 1999/01/21 20:45:48 grubba Exp $");      int num_threads = 1;   int threads_disabled = 0;
501:    }       ((struct thread_state *)(thread_id->storage))->status=THREAD_EXITED; -  co_signal(& ((struct thread_state *)(thread_id->storage))->status_change); +  co_broadcast(& ((struct thread_state *)(thread_id->storage))->status_change);       free((char *)data); /* Moved by per, to avoid some bugs.... */    UNSETJMP(back);
888:   {    static INT32 thread_local_id = 0;    -  struct object *loc = clone_object(thread_local_prog,0); +  struct object *loc = clone_object(thread_local_prog, 0);    ((struct thread_local *)loc->storage)->id = thread_local_id++;    pop_n_elems(args);    push_object(loc);