pike.git/
src/
threads.c
Branch:
Tag:
Non-build tags
All tags
No tags
2002-11-18
2002-11-18 17:09:07 by Martin Stjernholm <mast@lysator.liu.se>
12088b8e24153a3e5490b67d71595a6e2b508325 (
6
lines) (+
4
/-
2
)
[
Show
|
Annotate
]
Branch:
7.2
Fixed a missing initialization discovered by valgrind.
Rev: src/threads.c:1.165
1:
#include "global.h"
-
RCSID("$Id: threads.c,v 1.
164
2002/
09
/
14
03
:
03
:
04
mast Exp $");
+
RCSID("$Id: threads.c,v 1.
165
2002/
11
/
18
17
:
09
:
07
mast Exp $");
PMOD_EXPORT int num_threads = 1; PMOD_EXPORT int threads_disabled = 0;
1153:
void init_thread_obj(struct object *o) {
-
MEMSET(THIS_THREAD, 0, sizeof(struct Pike_interpreter));
+
MEMSET(
&
THIS_THREAD
->state
, 0, sizeof(struct Pike_interpreter));
+
THIS_THREAD->swapped = 0;
THIS_THREAD->status=THREAD_NOT_STARTED; co_init(& THIS_THREAD->status_change); THIS_THREAD->thread_local=NULL;