-- kevin
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1661
a5681a0c-68f1-0310-ab6d-
d61299d08faa
ci->next = ci->prev = NULL;
ci->flags &= ~CI_FLAGS_IN_QUEUE;
ci->next = ci->prev = NULL;
ci->flags &= ~CI_FLAGS_IN_QUEUE;
+
+ pthread_mutex_lock (&stats_lock);
+ assert (stats_queue_length > 0);
+ stats_queue_length--;
+ pthread_mutex_unlock (&stats_lock);
+
} /* }}} static void remove_from_queue */
/* free the resources associated with the cache_item_t
} /* }}} static void remove_from_queue */
/* free the resources associated with the cache_item_t
wipe_ci_values(ci, time(NULL));
remove_from_queue(ci);
wipe_ci_values(ci, time(NULL));
remove_from_queue(ci);
- pthread_mutex_lock (&stats_lock);
- assert (stats_queue_length > 0);
- stats_queue_length--;
- pthread_mutex_unlock (&stats_lock);
-
pthread_mutex_unlock (&cache_lock);
rrd_clear_error ();
pthread_mutex_unlock (&cache_lock);
rrd_clear_error ();