From 14657e25ea74187b1031223555de418c371c89f7 Mon Sep 17 00:00:00 2001
From: Russell Bryant <russell@russellbryant.com>
Date: Tue, 22 Jan 2008 16:55:55 +0000
Subject: [PATCH] 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
---
 channels/chan_sip.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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 */
-- 
GitLab