projects
/
asterisk/asterisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use the correct function to destroy an rwlock in the destructor for an ast_rwlock_t
[asterisk/asterisk.git]
/
include
/
asterisk
/
lock.h
diff --git
a/include/asterisk/lock.h
b/include/asterisk/lock.h
index
75ae4d3
..
c44929f
100644
(file)
--- a/
include/asterisk/lock.h
+++ b/
include/asterisk/lock.h
@@
-672,7
+672,7
@@
static void __attribute__ ((constructor)) init_##rwlock(void) \
} \
static void __attribute__ ((destructor)) fini_##rwlock(void) \
{ \
- ast_mutex_destroy(&rwlock); \
+ ast_rwlock_destroy(&rwlock); \
}
#else
#define AST_RWLOCK_INIT_VALUE PTHREAD_RWLOCK_INITIALIZER