pub unsafe extern "C" fn aws_priority_queue_init_dynamic(
    queue: *mut aws_priority_queue,
    alloc: *mut aws_allocator,
    default_size: usize,
    item_size: usize,
    pred: aws_priority_queue_compare_fn
) -> c_int
Expand description

Initializes a priority queue struct for use. This mode will grow memory automatically (exponential model) Default size is the inital size of the queue item_size is the size of each element in bytes. Mixing items types is not supported by this API. pred is the function that will be used to determine priority.