summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Djurfeldt <djurfeldt@nada.kth.se>2002-12-09 19:27:44 +0000
committerMikael Djurfeldt <djurfeldt@nada.kth.se>2002-12-09 19:27:44 +0000
commit52340b651aa105cb9e233f4c897fb5ada38f4b7b (patch)
treea6600569b45e738b5dbf84f8cd08f6b6f19dbd81
parent9bc4701cd397c375cca4fa77b579af0673e6a584 (diff)
downloadguile-52340b651aa105cb9e233f4c897fb5ada38f4b7b.tar.gz
* threads.c (scm_mutex_lock, scm_cond_wait, scm_cond_timedwait):
Removed accidental #if 0 around these functions.
-rw-r--r--libguile/ChangeLog3
-rw-r--r--libguile/threads.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/libguile/ChangeLog b/libguile/ChangeLog
index 8d96c60bc..0db4632f5 100644
--- a/libguile/ChangeLog
+++ b/libguile/ChangeLog
@@ -1,5 +1,8 @@
2002-12-09 Mikael Djurfeldt <djurfeldt@nada.kth.se>
+ * threads.c (scm_mutex_lock, scm_cond_wait, scm_cond_timedwait):
+ Removed accidental #if 0 around these functions.
+
These changes are the start of support for preemptive
multithreading. Marius and I have agreed that I commit this code
into the repository although it isn't thoroughly tested and surely
diff --git a/libguile/threads.c b/libguile/threads.c
index 4e3c9132b..99c957d3e 100644
--- a/libguile/threads.c
+++ b/libguile/threads.c
@@ -1051,7 +1051,6 @@ scm_spawn_thread (scm_t_catch_body body, void *body_data,
return create_thread (body, body_data, handler, handler_data, SCM_BOOL_F);
}
-#if 0
int
scm_mutex_lock (scm_t_mutex *m)
{
@@ -1078,7 +1077,6 @@ scm_cond_timedwait (scm_t_cond *c, scm_t_mutex *m)
scm_i_enter_guile (t);
return res;
}
-#endif
void
scm_enter_guile ()