mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 22:10:21 +02:00
(scm_try_mutex): Renamed argument for consistency.
This commit is contained in:
parent
d0a45bfffd
commit
ba1b72235a
1 changed files with 3 additions and 3 deletions
|
@ -900,7 +900,7 @@ fat_mutex_trylock (fat_mutex *m, int *resp)
|
|||
}
|
||||
|
||||
SCM_DEFINE (scm_try_mutex, "try-mutex", 1, 0, 0,
|
||||
(SCM mx),
|
||||
(SCM mutex),
|
||||
"Try to lock @var{mutex}. If the mutex is already locked by someone "
|
||||
"else, return @code{#f}. Else lock the mutex and return @code{#t}. ")
|
||||
#define FUNC_NAME s_scm_try_mutex
|
||||
|
@ -908,9 +908,9 @@ SCM_DEFINE (scm_try_mutex, "try-mutex", 1, 0, 0,
|
|||
char *msg;
|
||||
int res;
|
||||
|
||||
SCM_VALIDATE_MUTEX (1, mx);
|
||||
SCM_VALIDATE_MUTEX (1, mutex);
|
||||
|
||||
msg = fat_mutex_trylock (SCM_MUTEX_DATA (mx), &res);
|
||||
msg = fat_mutex_trylock (SCM_MUTEX_DATA (mutex), &res);
|
||||
if (msg)
|
||||
scm_misc_error (NULL, msg, SCM_EOL);
|
||||
return scm_from_bool (res);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue