pub unsafe extern "C" fn aws_priority_queue_init_static(
queue: *mut aws_priority_queue,
heap: *mut c_void,
item_count: usize,
item_size: usize,
pred: aws_priority_queue_compare_fn
)
Expand description
Initializes a priority queue struct for use. This mode will not allocate any additional memory. When the heap fills new enqueue operations will fail with AWS_ERROR_PRIORITY_QUEUE_FULL.
Heaps initialized using this call do not support the aws_priority_queue_push_ref call with a non-NULL backpointer parameter.
heap is the raw memory allocated for this priority_queue item_count is the maximum number of elements the raw heap can contain 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.