summaryrefslogtreecommitdiff
path: root/libguile/null-threads.h
diff options
context:
space:
mode:
authorMarius Vollmer <mvo@zagadka.de>2005-10-23 20:47:49 +0000
committerMarius Vollmer <mvo@zagadka.de>2005-10-23 20:47:49 +0000
commitd1138028c9d19fdca5c8e3cebaebd999abafd675 (patch)
tree76ce6966b7dba373c45c5af7f69576cf2fb0d5c8 /libguile/null-threads.h
parent777f2ed60a04d67d8a966ecb95a809d696a1307b (diff)
downloadguile-d1138028c9d19fdca5c8e3cebaebd999abafd675.tar.gz
* null-threads.h, pthread-threads.h
(SCM_I_PTHREAD_RECURSIVE_MUTEX_INITIALIZER): Removed. (scm_i_pthread_mutexattr_recursive): New. * threads.c (scm_i_pthread_mutexattr_recursive): Declare. (scm_i_critical_section_mutex): Do not initialize statically. (scm_threads_prehistory): Initialize scm_i_pthread_mutexattr_recursive and scm_i_critical_section_mutex here. * eval.c (source_mutex): Do not initialiaze statically. (scm_init_eval): Do it here, using scm_i_pthread_mutexattr_recursive.
Diffstat (limited to 'libguile/null-threads.h')
-rw-r--r--libguile/null-threads.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libguile/null-threads.h b/libguile/null-threads.h
index 7014d370d..a691a68fd 100644
--- a/libguile/null-threads.h
+++ b/libguile/null-threads.h
@@ -50,13 +50,13 @@
/* Mutexes
*/
#define SCM_I_PTHREAD_MUTEX_INITIALIZER 0
-#define SCM_I_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 0
#define scm_i_pthread_mutex_t int
#define scm_i_pthread_mutex_init(m,a) (*(m) = 0)
#define scm_i_pthread_mutex_destroy(m) do { (void)(m); } while(0)
#define scm_i_pthread_mutex_trylock(m) ((*(m))++)
#define scm_i_pthread_mutex_lock(m) ((*(m))++)
#define scm_i_pthread_mutex_unlock(m) ((*(m))--)
+#define scm_i_pthread_mutexattr_recursive 0
/* Condition variables
*/