mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-12 06:41:13 +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_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 "
|
"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}. ")
|
"else, return @code{#f}. Else lock the mutex and return @code{#t}. ")
|
||||||
#define FUNC_NAME s_scm_try_mutex
|
#define FUNC_NAME s_scm_try_mutex
|
||||||
|
@ -908,9 +908,9 @@ SCM_DEFINE (scm_try_mutex, "try-mutex", 1, 0, 0,
|
||||||
char *msg;
|
char *msg;
|
||||||
int res;
|
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)
|
if (msg)
|
||||||
scm_misc_error (NULL, msg, SCM_EOL);
|
scm_misc_error (NULL, msg, SCM_EOL);
|
||||||
return scm_from_bool (res);
|
return scm_from_bool (res);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue