diff options
author | Joshua Colp <jcolp@digium.com> | 2006-12-23 19:55:38 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2006-12-23 19:55:38 +0000 |
commit | 193d2932b9babbf93e23f7e960f376f3ff6d7c9b (patch) | |
tree | e2d370dc0167e70820b19722dbd905bda180f0e3 /include/asterisk/lock.h | |
parent | 72f23795df4dd57f0e06117faec727a70c1c650c (diff) |
We should probably declare the lock... and not just the constructor/deconstructor.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48928 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/lock.h')
-rw-r--r-- | include/asterisk/lock.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asterisk/lock.h b/include/asterisk/lock.h index c44929fa5..ca6663a9c 100644 --- a/include/asterisk/lock.h +++ b/include/asterisk/lock.h @@ -666,6 +666,7 @@ static inline int ast_rwlock_trywrlock(ast_rwlock_t *prwlock) #ifndef HAVE_PTHREAD_RWLOCK_INITIALIZER #define __AST_RWLOCK_DEFINE(scope, rwlock) \ + scope ast_rwlock_t rwlock; \ static void __attribute__ ((constructor)) init_##rwlock(void) \ { \ ast_rwlock_init(&rwlock); \ |