int cp_heap_get_mode(cp_heap *heap);
void cp_heap_set_mode(cp_heap *heap, int mode);
void cp_heap_unset_mode(cp_heap *heap, int mode);
- if the heap was initialized with a non-null copy function, this function is invoked by cp_heap_push (3) when inserting items in the heap.
- if the heap was initialized with a non-null item destructor function, this function is invoked by cp_heap_pop (3) when removing items and by cp_heap_destroy (3) when deallocating the heap.
- if set heap operations do not perform locking.
cp_heap_set_mode may be used to set the specified mode bits.
cp_heap_unset_mode may be used to unset the specified mode bits.