diff options
Diffstat (limited to 'sysdeps/mach/libc-lock.h')
-rw-r--r-- | sysdeps/mach/libc-lock.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/mach/libc-lock.h b/sysdeps/mach/libc-lock.h index 23f6ed4e94..e2caa82b9b 100644 --- a/sysdeps/mach/libc-lock.h +++ b/sysdeps/mach/libc-lock.h @@ -53,6 +53,9 @@ typedef struct __libc_lock_opaque__ __libc_lock_t; /* Lock the named lock variable. */ #define __libc_lock_lock(NAME) __mutex_lock (&(NAME)) +/* Lock the named lock variable. */ +#define __libc_lock_trylock(NAME) __mutex_trylock (&(NAME)) + /* Unlock the named lock variable. */ #define __libc_lock_unlock(NAME) __mutex_unlock (&(NAME)) |