mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-17 01:00:20 +02:00
scm_timed_lock_mutex replaces scm_lock_mutex_timed
* libguile/deprecated.h: * libguile/deprecated.c (scm_lock_mutex_timed): Deprecate. * libguile/threads.h: * libguile/threads.c (scm_timed_lock_mutex): New function. (scm_join_thread): Fix formatting. (scm_lock_mutex): Fix formatting and update to scm_timed_lock_mutex change. (scm_try_mutex): Update to scm_timed_lock_mutex.
This commit is contained in:
parent
8d907758a0
commit
03ffd726df
4 changed files with 27 additions and 18 deletions
|
@ -699,6 +699,21 @@ scm_make_mutex_with_flags (SCM flags)
|
|||
return scm_make_mutex_with_kind (kind);
|
||||
}
|
||||
|
||||
SCM
|
||||
scm_lock_mutex_timed (SCM m, SCM timeout, SCM owner)
|
||||
{
|
||||
scm_c_issue_deprecation_warning
|
||||
("'scm_lock_mutex_timed' is deprecated. "
|
||||
"Use 'scm_timed_lock_mutex' instead.");
|
||||
|
||||
if (!SCM_UNBNDP (owner) && !scm_is_false (owner))
|
||||
scm_c_issue_deprecation_warning
|
||||
("The 'owner' argument to 'scm_lock_mutex_timed' is deprecated. "
|
||||
"Use SRFI-18 directly if you need this concept.");
|
||||
|
||||
return scm_timed_lock_mutex (m, timeout);
|
||||
}
|
||||
|
||||
SCM
|
||||
scm_unlock_mutex_timed (SCM mx, SCM cond, SCM timeout)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue