Changeset 14:14cf6daf716d in freeDiameter for libfreeDiameter/fifo.c
- Timestamp:
- Oct 1, 2009, 6:24:07 PM (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfreeDiameter/fifo.c
r11 r14 65 65 void (*l_cb)(struct fifo *, void **); 66 66 int highest;/* The highest count value for which h_cb has been called */ 67 int highest_ever; /* The max count value this queue has reached (for tweaking) */ 67 68 }; 68 69 … … 118 119 CHECK_POSIX_DO( pthread_mutex_lock( &queue->mtx ), /* continue */ ); 119 120 fd_log_debug(" %d elements in queue / %d threads waiting\n", queue->count, queue->thrs); 120 fd_log_debug(" thresholds: %d / %d , cb: %p /%p (%p), highest: %d\n",121 queue->high, queue->low, 121 fd_log_debug(" thresholds: %d / %d (h:%d), cb: %p,%p (%p), highest: %d\n", 122 queue->high, queue->low, queue->highest, 122 123 queue->h_cb, queue->l_cb, queue->data, 123 queue->highest );124 queue->highest_ever); 124 125 125 126 if (dump_item) { … … 251 252 fd_list_insert_before( &queue->list, new); 252 253 queue->count++; 254 if (queue->highest_ever < queue->count) 255 queue->highest_ever = queue->count; 253 256 if (queue->high && ((queue->count % queue->high) == 0)) { 254 257 call_cb = 1;
Note: See TracChangeset
for help on using the changeset viewer.