pike.git/
src/
threads.c
Branch:
Tag:
Non-build tags
All tags
No tags
2002-01-24
2002-01-24 16:42:20 by Henrik Grubbström (Grubba) <grubba@grubba.org>
8faf2a2cb50f047d126594180b3989298c117afb (
10
lines) (+
9
/-
1
)
[
Show
|
Annotate
]
Branch:
7.2
Added FIXME.
Rev: src/signal_handler.c:1.195
Rev: src/threads.c:1.161
1:
#include "global.h"
-
RCSID("$Id: threads.c,v 1.
160
2001
/
11
/
12
15
:
59
:
09
mast
Exp $");
+
RCSID("$Id: threads.c,v 1.
161
2002
/
01
/
24
16
:
42
:
20
grubba
Exp $");
PMOD_EXPORT int num_threads = 1; PMOD_EXPORT int threads_disabled = 0;
656:
arg.args=0; f_call_function(args);
+
/* FIXME: Check threads_disable. */
+
/* copy return value to the Pike_interpreter.thread_id here */ object_low_set_index(Pike_interpreter.thread_id, thread_id_result_variable,
691:
remove_callback(threads_evaluator_callback); threads_evaluator_callback=0; }
+
/* FIXME: What about threads_disable? */
mt_unlock_interpreter(); th_exit(0); /* NOT_REACHED, but removes a warning */
1105:
{ struct thread_state *th=THIS_THREAD;
+
if (threads_disabled) {
+
Pike_error("Cannot wait for threads when threads are disabled!\n");
+
}
+
SWAP_OUT_CURRENT_THREAD(); while(th->status != THREAD_EXITED) {