aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-11 14:09:43 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-11 14:09:43 +0000
commit37c25bb5d409e739153e827d070fa0aa4722fdb4 (patch)
treec26689d346544967e35459d38ef7fee8651aace1 /apps
parent8a586773c4c3c29ab2071222556bb8612dc00103 (diff)
Document why membercount can not simply be replaced by ao2_container_count()
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82236 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_queue.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 710f3520b..683ee75a7 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -397,7 +397,12 @@ struct call_queue {
int autofill; /*!< Ignore the head call status and ring an available agent */
struct ao2_container *members; /*!< Head of the list of members */
- int membercount; /*!< Number of members in queue */
+ /*!
+ * \brief Number of members _logged in_
+ * \note There will be members in the members container that are not logged
+ * in, so this can not simply be replaced with ao2_container_count().
+ */
+ int membercount;
struct queue_ent *head; /*!< Head of the list of callers */
AST_LIST_ENTRY(call_queue) list; /*!< Next call queue */
};