diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/module.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asterisk/module.h b/include/asterisk/module.h index afb90ce24..ec01ba115 100644 --- a/include/asterisk/module.h +++ b/include/asterisk/module.h @@ -290,6 +290,10 @@ void ast_unregister_atexit(void (*func)(void)); static struct localuser *localusers = NULL; \ static int localusecnt = 0; +#define STANDARD_USECOUNT_DECL \ + AST_MUTEX_DEFINE_STATIC(localuser_lock); \ + static int localusecnt = 0; + #define STANDARD_INCREMENT_USECOUNT \ ast_mutex_lock(&localuser_lock); \ localusecnt++; \ |