Skip to content
Snippets Groups Projects
Commit 84cfceca authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

fixed potential bug

Rev: src/threads.c:1.107
parent 6f2835e5
Branches
Tags
No related merge requests found
#include "global.h"
RCSID("$Id: threads.c,v 1.106 1999/12/14 19:49:51 mast Exp $");
RCSID("$Id: threads.c,v 1.107 2000/01/16 05:57:34 hubbe Exp $");
int num_threads = 1;
int threads_disabled = 0;
......@@ -560,10 +560,10 @@ TH_RETURN_TYPE new_thread_func(void * data)
);
init_interpreter();
thread_id=arg.id;
SWAP_OUT_THREAD(OBJ2THREAD(thread_id)); /* Init struct */
OBJ2THREAD(thread_id)->swapped=0;
stack_top=((char *)&data)+ (thread_stack_size-16384) * STACK_DIRECTION;
recoveries = NULL;
SWAP_OUT_THREAD(OBJ2THREAD(thread_id)); /* Init struct */
OBJ2THREAD(thread_id)->swapped=0;
#if defined(PIKE_DEBUG)
if(d_flag)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment