From: Russell Bryant Date: Tue, 22 Jan 2008 16:55:55 +0000 (+0000) Subject: Point out a bug in some debug counter handling X-Git-Tag: 1.6.0-beta2~2^2~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14657e25ea74187b1031223555de418c371c89f7;p=thirdparty%2Fasterisk.git 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 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index d2ab62cc89..507ac276e7 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 */