projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d810d52
)
Set the AST_RWLOCK_INIT_VALUE to the PTHREAD_RWLOCK_INIT_VALUE if it is available...
author
Joshua Colp
<jcolp@digium.com>
Thu, 2 Nov 2006 16:51:27 +0000
(16:51 +0000)
committer
Joshua Colp
<jcolp@digium.com>
Thu, 2 Nov 2006 16:51:27 +0000
(16:51 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46940
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
include/asterisk/lock.h
patch
|
blob
|
history
diff --git
a/include/asterisk/lock.h
b/include/asterisk/lock.h
index
b329fc1
..
d2ce098
100644
(file)
--- a/
include/asterisk/lock.h
+++ b/
include/asterisk/lock.h
@@
-672,6
+672,7
@@
static void __attribute__ ((destructor)) fini_##rwlock(void) \
ast_mutex_destroy(&rwlock); \
}
#else
+#define AST_RWLOCK_INIT_VALUE PTHREAD_RWLOCK_INITIALIZER
#define __AST_RWLOCK_DEFINE(scope, rwlock) \
scope ast_rwlock_t rwlock = AST_RWLOCK_INIT_VALUE
#endif