mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-24 20:30:28 +02:00
Replace scm_make_mutex_with_flags
* libguile/threads.c (enum fat_mutex_kind): New data type, replacing separate flags. (struct fat_mutex): Adapt. (make_fat_mutex): Fat mutexes can only be one of three kinds, not one of 4 kinds. (Recursive unowned mutexes are not a thing.) (scm_make_mutex): Adapt. (scm_make_mutex_with_kind): New function, replacing scm_make_mutex_with_flags. Still bound to make-mutex. (scm_make_recursive_mutex): Adapt. (fat_mutex_lock, fat_mutex_unlock): Adapt. * libguile/threads.h (scm_make_mutex_with_kind): New decl. * libguile/deprecated.h: * libguile/deprecated.c (scm_make_mutex_with_flags): Deprecate.
This commit is contained in:
parent
c0916134ac
commit
7682461241
4 changed files with 72 additions and 31 deletions
|
@ -150,7 +150,7 @@ SCM_API SCM scm_thread_p (SCM t);
|
|||
|
||||
SCM_API SCM scm_make_mutex (void);
|
||||
SCM_API SCM scm_make_recursive_mutex (void);
|
||||
SCM_API SCM scm_make_mutex_with_flags (SCM flags);
|
||||
SCM_API SCM scm_make_mutex_with_kind (SCM kind);
|
||||
SCM_API SCM scm_lock_mutex (SCM m);
|
||||
SCM_API SCM scm_lock_mutex_timed (SCM m, SCM timeout, SCM owner);
|
||||
SCM_API void scm_dynwind_lock_mutex (SCM mutex);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue