CUBRID Engine  latest
broker_max_heap.c File Reference
#include "broker_max_heap.h"
Include dependency graph for broker_max_heap.c:

Go to the source code of this file.

Functions

int max_heap_insert (T_MAX_HEAP_NODE *max_heap, int max_heap_size, T_MAX_HEAP_NODE *item)
 
int max_heap_change_priority (T_MAX_HEAP_NODE *max_heap, int id, int new_priority)
 
int max_heap_delete (T_MAX_HEAP_NODE *max_heap, T_MAX_HEAP_NODE *ret)
 
void max_heap_incr_priority (T_MAX_HEAP_NODE *max_heap)
 

Function Documentation

int max_heap_change_priority ( T_MAX_HEAP_NODE max_heap,
int  id,
int  new_priority 
)

Definition at line 49 of file broker_max_heap.c.

References i, t_max_heap_node::id, and t_max_heap_node::priority.

int max_heap_delete ( T_MAX_HEAP_NODE max_heap,
T_MAX_HEAP_NODE ret 
)

Definition at line 78 of file broker_max_heap.c.

References t_max_heap_node::id, and t_max_heap_node::priority.

Referenced by copy_job_info(), dispatch_thr_f(), print_job_queue(), and shard_dispatch_thr_f().

Here is the caller graph for this function:

void max_heap_incr_priority ( T_MAX_HEAP_NODE max_heap)

Definition at line 107 of file broker_max_heap.c.

References i, t_max_heap_node::id, and t_max_heap_node::priority.

Referenced by dispatch_thr_f(), and shard_dispatch_thr_f().

Here is the caller graph for this function:

int max_heap_insert ( T_MAX_HEAP_NODE max_heap,
int  max_heap_size,
T_MAX_HEAP_NODE item 
)

Definition at line 29 of file broker_max_heap.c.

References i, t_max_heap_node::id, and t_max_heap_node::priority.

Referenced by receiver_thr_f().

Here is the caller graph for this function: