pike.git/
src/
threads.c
Branch:
Tag:
Non-build tags
All tags
No tags
1997-10-05
1997-10-05 03:40:34 by Henrik Grubbström (Grubba) <grubba@grubba.org>
fed8dea34a34c291f5d49cef749063dd43ca78d7 (
10
lines) (+
9
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Now calls pthread_init() if available.
Rev: src/threads.c:1.44
1:
#include "global.h"
-
RCSID("$Id: threads.c,v 1.
43
1997/
09
/
23
15
:
17
:
18
grubba Exp $");
+
RCSID("$Id: threads.c,v 1.
44
1997/
10
/
05
03
:
40
:
34
grubba Exp $");
int num_threads = 1; int threads_disabled = 0;
410:
#endif /* SGI_SPROC_THREADS */ THREADS_FPRINTF((stderr, "THREADS_DISALLOW() Initializing threads.\n"));
+
+
#ifdef POSIX_THREADS
+
#ifdef HAVE_PTHREAD_INIT
+
pthread_init();
+
#endif /* HAVE_PTHREAD_INIT */
+
#endif /* POSIX_THREADS */
+
mt_init( & interpreter_lock); mt_lock( & interpreter_lock); #ifdef POSIX_THREADS