diff options
author | Russell Bryant <russell@russellbryant.com> | 2008-01-22 16:55:55 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2008-01-22 16:55:55 +0000 |
commit | 14657e25ea74187b1031223555de418c371c89f7 (patch) | |
tree | 323e44bdfadf72aabfb82a90f4ca5a5284f8a578 | |
parent | f4fe6744cc1d1934a9ad7de23bb49a4a1f56667c (diff) |
Point out a bug in some debug counter handling
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@99542 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | channels/chan_sip.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index d2ab62cc8..507ac276e 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -722,13 +722,16 @@ static int global_max_se; /*!< Highest threshold for session /*@}*/ -/* Object counters */ +/*! Object counters @{ + * \bug These counters are not handled in a thread-safe way. ast_atomic_fetchadd_int() + * should be used to modify these values. */ static int suserobjs = 0; /*!< Static users */ static int ruserobjs = 0; /*!< Realtime users */ static int speerobjs = 0; /*!< Statis peers */ static int rpeerobjs = 0; /*!< Realtime peers */ static int apeerobjs = 0; /*!< Autocreated peer objects */ static int regobjs = 0; /*!< Registry objects */ +/* }@ */ static struct ast_flags global_flags[2] = {{0}}; /*!< global SIP_ flags */ static char used_context[AST_MAX_CONTEXT]; /*!< name of automatically created context for unloading */ |