node->importance = importance;
switch_mutex_lock(globals.mutex);
+
switch_core_hash_insert(globals.fifo_hash, name, node);
node->next = globals.nodes;
globals.nodes = node;
while(node) {
int x = 0;
switch_event_t *pop;
- int nuke = 0;
-
+
this_node = node;
node = node->next;
switch_mutex_unlock(this_node->update_mutex);
switch_thread_rwlock_unlock(this_node->rwlock);
switch_core_destroy_memory_pool(&this_node->pool);
- nuke++;
+ continue;
}
last = this_node;
- if (nuke) continue;
-
if (this_node->outbound_priority == 0) this_node->outbound_priority = 5;
globals.debug = 1;
for (hi = switch_hash_first(NULL, globals.fifo_hash); hi; hi = switch_hash_next(hi)) {
switch_hash_this(hi, &var, NULL, &val);
node = (fifo_node_t *) val;
+
switch_mutex_lock(node->mutex);
list_node(node, x_report, &x, verbose);
switch_mutex_unlock(node->mutex);
if (!(node = switch_core_hash_find(globals.fifo_hash, MANUAL_QUEUE_NAME))) {
node = create_node(MANUAL_QUEUE_NAME, 0, globals.sql_mutex);
+ node->ready = 2;
node->is_static = 0;
}