* threads.h, async.h, threads.c (SCM_CRITICAL_SECTION_START,
authorMarius Vollmer <mvo@zagadka.de>
Mon, 7 Mar 2005 21:30:24 +0000 (21:30 +0000)
committerMarius Vollmer <mvo@zagadka.de>
Mon, 7 Mar 2005 21:30:24 +0000 (21:30 +0000)
commita4d106c70e87ee8e5d8aa3a0e3d44218703f1d04
treeeb02997854fc4c04e16254b1091b5645daafe355
parent673ba2da04c2495f905b9e47c2ee820a605aef64
* threads.h, async.h, threads.c (SCM_CRITICAL_SECTION_START,
SCM_CRITICAL_SECTION_END): Moved here from threads.h since now
they also block/unblock execution of asyncs and call
scm_async_click which is declared in async.h but threads.h can not
include async.h since async.h already includes threads.h.
(scm_i_critical_section_level): New, for checking mistakes in the
use of the SCM_CRITICAL_SECTION_* macros.
(scm_i_critical_section_mutex): Make it a recursive mutex so that
critical sections can be nested.

* threads.h, threads.c (scm_frame_lock_mutex): New.
(scm_frame_critical_section): Take mutex as argument.
(framed_critical_section_mutex): New, used as default for above.
(scm_init_threads): Initialize it.
(scm_threads_prehistory): Do not initialize thread_admin_mutex and
scm_i_critical_section_mutex; both are initialized statically.
libguile/async.h
libguile/threads.c
libguile/threads.h