Branch: Tag:

2003-04-01

2003-04-01 14:23:10 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Bugfix for dmalloc.

Rev: src/threads.c:1.122

1:   #include "global.h" - RCSID("$Id: threads.c,v 1.121 2003/03/31 18:43:59 grubba Exp $"); + RCSID("$Id: threads.c,v 1.122 2003/04/01 14:23:10 grubba Exp $");      int num_threads = 1;   int threads_disabled = 0;
649:    (unsigned int)thread_id));       cleanup_interpret(); -  DO_IF_DMALLOC( +  DO_IF_DMALLOC({ +  struct object *o = thread_id;    SWAP_OUT_THREAD(OBJ2THREAD(thread_id)); /* de-Init struct */ -  +  thread_id = o;    OBJ2THREAD(thread_id)->swapped=0; -  ) +  })    thread_table_delete(thread_id);    free_object(thread_id);    thread_id=0;