mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-24 20:30:28 +02:00
* 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.
This commit is contained in:
parent
777f2ed60a
commit
d1138028c9
4 changed files with 19 additions and 6 deletions
|
@ -44,14 +44,13 @@
|
|||
/* Mutexes
|
||||
*/
|
||||
#define SCM_I_PTHREAD_MUTEX_INITIALIZER PTHREAD_MUTEX_INITIALIZER
|
||||
#define SCM_I_PTHREAD_RECURSIVE_MUTEX_INITIALIZER \
|
||||
PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
|
||||
#define scm_i_pthread_mutex_t pthread_mutex_t
|
||||
#define scm_i_pthread_mutex_init pthread_mutex_init
|
||||
#define scm_i_pthread_mutex_destroy pthread_mutex_destroy
|
||||
#define scm_i_pthread_mutex_trylock pthread_mutex_trylock
|
||||
#define scm_i_pthread_mutex_lock pthread_mutex_lock
|
||||
#define scm_i_pthread_mutex_unlock pthread_mutex_unlock
|
||||
extern pthread_mutexattr_t scm_i_pthread_mutexattr_recursive[1];
|
||||
|
||||
/* Condition variables
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue