[asterisk-commits] russell: trunk r99542 - /trunk/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Jan 22 11:55:22 CST 2008
Author: russell
Date: Tue Jan 22 10:55:55 2008
New Revision: 99542
URL: http://svn.digium.com/view/asterisk?view=rev&rev=99542
Log:
Point out a bug in some debug counter handling
Modified:
trunk/channels/chan_sip.c
Change Statistics:
0 files changed
Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=99542&r1=99541&r2=99542
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Tue Jan 22 10:55:55 2008
@@ -722,13 +722,16 @@
/*@}*/
-/* 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 */
More information about the asterisk-commits
mailing list