pike.git/
src/
threads.c
Branch:
Tag:
Non-build tags
All tags
No tags
1998-07-16
1998-07-16 23:46:15 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>
16df70826242a06bf508a3e083d99b816a3ba977 (
21
lines) (+
14
/-
7
)
[
Show
|
Annotate
]
Branch:
7.9
init_threads_disable() might actually work now...
Rev: src/threads.c:1.76
1:
#include "global.h"
-
RCSID("$Id: threads.c,v 1.
75
1998/07/
10
15
:
52
:
06
grubba
Exp $");
+
RCSID("$Id: threads.c,v 1.
76
1998/07/
16
23
:
46
:
15
hubbe
Exp $");
int num_threads = 1; int threads_disabled = 0;
207:
THREADS_FPRINTF(0, (stderr, "init_threads_disable(): threads_disabled:%d\n", threads_disabled));
+
+
if(live_threads)
+
{
+
SWAP_OUT_CURRENT_THREAD();
while (live_threads) { THREADS_FPRINTF(0, (stderr,
214:
live_threads)); co_wait(&live_threads_change, &interpreter_lock); }
+
SWAP_IN_CURRENT_THREAD();
}
-
+
}
void exit_threads_disable(struct object *o) {