mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
parent
e2ffb64d7a
commit
1abd0be41e
@ -45,11 +45,11 @@ enum rwlock_id { RWLOCK_SMBD, /* global smbd lock */
|
||||
#define MUTEX_LOCK(mutex, name) smb_mutex_lock(mutex, #name)
|
||||
#define MUTEX_UNLOCK(mutex, name) smb_mutex_unlock(mutex, #name)
|
||||
|
||||
#define RWLOCK_INIT(rwlock, name) rwlock_init(rwlock, #name)
|
||||
#define RWLOCK_DESTROY(rwlock, name) rwlock_destroy(rwlock, #name)
|
||||
#define RWLOCK_LOCK_WRITE(rwlock, name) rwlock_lock_write(rwlock, #name)
|
||||
#define RWLOCK_LOCK_READ(rwlock, name) rwlock_lock_read(rwlock, #name)
|
||||
#define RWLOCK_UNLOCK(rwlock, name) rwlock_unlock(rwlock, #name)
|
||||
#define RWLOCK_INIT(rwlock, name) smb_rwlock_init(rwlock, #name)
|
||||
#define RWLOCK_DESTROY(rwlock, name) smb_rwlock_destroy(rwlock, #name)
|
||||
#define RWLOCK_LOCK_WRITE(rwlock, name) smb_rwlock_lock_write(rwlock, #name)
|
||||
#define RWLOCK_LOCK_READ(rwlock, name) smb_rwlock_lock_read(rwlock, #name)
|
||||
#define RWLOCK_UNLOCK(rwlock, name) smb_rwlock_unlock(rwlock, #name)
|
||||
|
||||
|
||||
|
||||
|
@ -72,7 +72,7 @@ int smb_mutex_unlock(smb_mutex_t *mutex, const char *name)
|
||||
|
||||
/* read/write lock routines */
|
||||
|
||||
int rwlock_init(smb_rwlock_t *rwlock, const char *name)
|
||||
int smb_rwlock_init(smb_rwlock_t *rwlock, const char *name)
|
||||
{
|
||||
if (mutex_handlers.ops.rwlock_init) {
|
||||
return mutex_handlers.ops.rwlock_init(rwlock, name);
|
||||
@ -80,7 +80,7 @@ int rwlock_init(smb_rwlock_t *rwlock, const char *name)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int rwlock_destroy(smb_rwlock_t *rwlock, const char *name)
|
||||
int smb_rwlock_destroy(smb_rwlock_t *rwlock, const char *name)
|
||||
{
|
||||
if (mutex_handlers.ops.rwlock_destroy) {
|
||||
return mutex_handlers.ops.rwlock_destroy(rwlock, name);
|
||||
@ -88,7 +88,7 @@ int rwlock_destroy(smb_rwlock_t *rwlock, const char *name)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int rwlock_lock_write(smb_rwlock_t *rwlock, const char *name)
|
||||
int smb_rwlock_lock_write(smb_rwlock_t *rwlock, const char *name)
|
||||
{
|
||||
if (mutex_handlers.ops.rwlock_lock_write) {
|
||||
return mutex_handlers.ops.rwlock_lock_write(rwlock, name);
|
||||
@ -96,7 +96,7 @@ int rwlock_lock_write(smb_rwlock_t *rwlock, const char *name)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int rwlock_lock_read(smb_rwlock_t *rwlock, const char *name)
|
||||
int smb_rwlock_lock_read(smb_rwlock_t *rwlock, const char *name)
|
||||
{
|
||||
if (mutex_handlers.ops.rwlock_lock_read) {
|
||||
return mutex_handlers.ops.rwlock_lock_read(rwlock, name);
|
||||
@ -104,7 +104,7 @@ int rwlock_lock_read(smb_rwlock_t *rwlock, const char *name)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int rwlock_unlock(smb_rwlock_t *rwlock, const char *name)
|
||||
int smb_rwlock_unlock(smb_rwlock_t *rwlock, const char *name)
|
||||
{
|
||||
if (mutex_handlers.ops.rwlock_unlock) {
|
||||
return mutex_handlers.ops.rwlock_unlock(rwlock, name);
|
||||
|
Loading…
Reference in New Issue
Block a user