summaryrefslogtreecommitdiff
path: root/libguile/threads.h
diff options
context:
space:
mode:
authorMikael Djurfeldt <djurfeldt@nada.kth.se>2002-12-18 13:42:58 +0000
committerMikael Djurfeldt <djurfeldt@nada.kth.se>2002-12-18 13:42:58 +0000
commit29717c89316bb94c95a90107553a47f5ee5fb4e3 (patch)
tree0c049f90cb4023f7189cfdeb4a5124ba1a21cfc5 /libguile/threads.h
parent62d4fd94a6993ee521756c5ecebce0fcaed39779 (diff)
downloadguile-29717c89316bb94c95a90107553a47f5ee5fb4e3.tar.gz
* Makefile.am (modinclude_HEADERS): Added threads-plugin.h.
(EXTRA_DIST): Added threads-plugin.c. * threads-plugin.h, threads-plugin.c: New files. * threads.h: #include "libguile/threads-plugin.h". * threads.c: #include "libguile/threads-plugin.c". * pthread-threads.c: Temporarily remove debugging functions. * threads.c, threads.h (scm_yield): Added back.
Diffstat (limited to 'libguile/threads.h')
-rw-r--r--libguile/threads.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libguile/threads.h b/libguile/threads.h
index 63b70428d..14c0bdefe 100644
--- a/libguile/threads.h
+++ b/libguile/threads.h
@@ -51,6 +51,7 @@
#include "libguile/throw.h"
#include "libguile/root.h"
#include "libguile/iselect.h"
+#include "libguile/threads-plugin.h"
/* smob tags for the thread datatypes */
@@ -126,6 +127,7 @@ SCM_API SCM scm_spawn_thread (scm_t_catch_body body, void *body_data,
#define scm_thread_join scm_i_plugin_thread_join
#define scm_thread_detach scm_i_plugin_thread_detach
#define scm_thread_self scm_i_plugin_thread_self
+#define scm_thread_yield scm_i_plugin_thread_yield
#define scm_mutex_init scm_i_plugin_mutex_init
#define scm_mutex_destroy scm_i_plugin_mutex_destroy
@@ -235,6 +237,7 @@ do { \
/* The C versions of the Scheme-visible thread functions. */
SCM_API SCM scm_call_with_new_thread (SCM thunk, SCM handler);
+SCM_API SCM scm_yield (void);
SCM_API SCM scm_join_thread (SCM t);
SCM_API SCM scm_i_make_future (SCM thunk);
SCM_API SCM scm_future_ref (SCM future);