globus_priority_q.h(3)
π NAME π
okay bestie, welcome to globus_priority_q.h β it's the Priority Queue π
. yes, the whole thing. a queue, but make it ranked. main character energy only, lowest-priority data can wait in line like everyone else π
β¨ SYNOPSIS β¨
#include 'globus_types.h'
#include 'globus_memory.h'
π¦ Data Structures π¦
struct globus_priority_q_sβ the Priority Queue Structure itself. iconic. the actual container π
πΈ Typedefs πΈ
typedef int(* globus_priority_q_cmp_func_t) (void *priority_1, void *priority_2)β the Priority Comparison Predicate. this is the lil function you hand over so the queue knows who beats who πtypedef struct globus_priority_q_s globus_priority_q_tβ the Priority Queue Structure, but as a typedef. same queen, shorter name β¨
π Functions π
int globus_priority_q_init (globus_priority_q_t *priority_q, globus_priority_q_cmp_func_t cmp_func)β Initialize a priority queue.int globus_priority_q_destroy (globus_priority_q_t *priority_q)β Destroy a Priority Queue.globus_bool_t globus_priority_q_empty (globus_priority_q_t *priority_q)β Priority Queue Empty Predicate.int globus_priority_q_size (globus_priority_q_t *priority_q)β Priority Queue Size.int globus_priority_q_enqueue (globus_priority_q_t *priority_q, void *datum, void *priority)β Add a Datum to a Priority Queue.void * globus_priority_q_remove (globus_priority_q_t *priority_q, void *datum)β Remove an Arbitrary Datum from a Priority Queue.void * globus_priority_q_modify (globus_priority_q_t *priority_q, void *datum, void *new_priority)β Modify the Priority of Datum.void * globus_priority_q_dequeue (globus_priority_q_t *priority_q)β Remove a Datum From A Priority Queue.void * globus_priority_q_first (globus_priority_q_t *priority_q)β Get the Highest-Priority Datum From a Priority Queue.void * globus_priority_q_first_priority (globus_priority_q_t *priority_q)β Get the Highest Priority in Priority Queue.
π Detailed Description π
Priority Queue. that's the vibe. fr fr, that's literally the whole description β a queue where the priorities matter and the ordering is the moment π«
π Author π
Generated automatically by Doxygen for globus_common from the source code. not me writing a whole personality for a header file π
and that's the tea π this was globus_priority_q.h(3) from the Library Functions Manual, brought to you by globus_common, Version 18.15 β slay, go forth and enqueue responsibly π«Άπ
π¦ where this page comes from
- epel 10: globus-common-doc 18.15-1.el10_2 Β· Apache-2.0
- fedora 43: globus-common-doc 18.15-1.fc43 Β· Apache-2.0
- fedora 44: globus-common-doc 18.15-2.fc44 Β· Apache-2.0
- ubuntu resolute: libglobus-common-doc 18.15-1 Β· Apache-2.0
- ubuntu stonking: libglobus-common-doc 18.15-2 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms