summaryrefslogtreecommitdiff
path: root/libguile/threads.c
diff options
context:
space:
mode:
authorMikael Djurfeldt <djurfeldt@nada.kth.se>2002-12-16 09:28:38 +0000
committerMikael Djurfeldt <djurfeldt@nada.kth.se>2002-12-16 09:28:38 +0000
commit93cd4dcd9c37f3ee1401742dcc81ec192209b5ff (patch)
tree7f01ce64b2b3bcd4bef27559777c39f39f115f5f /libguile/threads.c
parent09841c77838b6263c666036f1e81c82cbe8e152e (diff)
downloadguile-93cd4dcd9c37f3ee1401742dcc81ec192209b5ff.tar.gz
* pthread-threads.c, pthread-threads.h, threads.c: Fixes to
pthread "native" recursive mutex support.
Diffstat (limited to 'libguile/threads.c')
-rw-r--r--libguile/threads.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libguile/threads.c b/libguile/threads.c
index 1fdf77f5e..cafe680c4 100644
--- a/libguile/threads.c
+++ b/libguile/threads.c
@@ -1329,6 +1329,10 @@ void
scm_threads_prehistory ()
{
scm_thread *t;
+#ifdef USE_PTHREAD_THREADS
+ /* Must be called before any initialization of a mutex. */
+ scm_init_pthread_threads ();
+#endif
scm_i_plugin_mutex_init (&thread_admin_mutex, &scm_i_plugin_mutex);
scm_i_plugin_rec_mutex_init (&gc_section_mutex, &scm_i_plugin_rec_mutex);
scm_i_plugin_cond_init (&wake_up_cond, 0);
@@ -1342,9 +1346,6 @@ scm_threads_prehistory ()
t->base = NULL;
t->clear_freelists_p = 0;
scm_setspecific (scm_i_thread_key, t);
-#ifdef USE_PTHREAD_THREADS
- scm_init_pthread_threads ();
-#endif
}
scm_t_bits scm_tc16_thread;