mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-22 13:25:17 +00:00
Use the correct function to destroy an rwlock in the destructor for an ast_rwlock_t
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48927 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -672,7 +672,7 @@ static void __attribute__ ((constructor)) init_##rwlock(void) \
|
|||||||
} \
|
} \
|
||||||
static void __attribute__ ((destructor)) fini_##rwlock(void) \
|
static void __attribute__ ((destructor)) fini_##rwlock(void) \
|
||||||
{ \
|
{ \
|
||||||
ast_mutex_destroy(&rwlock); \
|
ast_rwlock_destroy(&rwlock); \
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#define AST_RWLOCK_INIT_VALUE PTHREAD_RWLOCK_INITIALIZER
|
#define AST_RWLOCK_INIT_VALUE PTHREAD_RWLOCK_INITIALIZER
|
||||||
|
Reference in New Issue
Block a user