pike.git/
src/
threads.c
Branch:
Tag:
Non-build tags
All tags
No tags
2015-12-13
2015-12-13 18:54:41 by Henrik Grubbström (Grubba) <grubba@grubba.org>
a7293531706773b06a926d2509c966a1f61b9cbd (
6
lines) (+
2
/-
4
)
[
Show
|
Annotate
]
Branch:
8.1
Thread: Use callablep() instead of f_callablep().
1994:
if (args < 1) { SIMPLE_TOO_FEW_ARGS_ERROR("create", 1); }
-
push_svalue(Pike_sp - args);
-
f_callablep(1);
-
if (
UNSAFE_IS_ZERO
(Pike_sp -
1
)) {
+
if (
!callablep
(Pike_sp -
args
)) {
SIMPLE_BAD_ARG_ERROR("create", 1, "function"); }
-
pop_stack();
+
if (thread_state->status != THREAD_NOT_STARTED) { Pike_error("Threads can not be restarted (status:%d).\n",