mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-24 12:20:20 +02:00
Add mutex locking functions that also block asyncs.
* libguile/async.h (scm_i_pthread_mutex_lock_block_asyncs, scm_i_pthread_mutex_unlock_unblock_asyncs): New macros. * libguile/threads.c (do_unlock_with_asyncs): New static helper. (scm_i_dynwind_pthread_mutex_lock_block_asyncs): New function. * libguile/threads.h (scm_i_dynwind_pthread_mutex_lock_block_asyncs): Add prototype.
This commit is contained in:
parent
1e42832af0
commit
e676a4c342
3 changed files with 33 additions and 0 deletions
|
@ -143,6 +143,7 @@ SCM_INTERNAL void scm_init_threads (void);
|
|||
SCM_INTERNAL void scm_init_thread_procs (void);
|
||||
SCM_INTERNAL void scm_init_threads_default_dynamic_state (void);
|
||||
|
||||
SCM_INTERNAL void scm_i_dynwind_pthread_mutex_lock_block_asyncs (scm_i_pthread_mutex_t *mutex);
|
||||
|
||||
#define SCM_THREAD_SWITCHING_CODE \
|
||||
do { } while (0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue