libfossil
fsl__pq Struct Reference

#include "internal.h"

Collaboration diagram for fsl__pq:

Data Fields

uint16_t capacity
 Number of items allocated in this->list.
fsl__pq_entry * list
 The queue.
uint16_t used
 Number of items used in this->list.

Detailed Description

A simple priority queue class. Instances must be initialized by copying fsl__pq_empty or fsl__pq_empty_m (depending on where the instance lives).

Definition at line 70 of file internal.h.

Field Documentation

◆ capacity

uint16_t fsl__pq::capacity

Number of items allocated in this->list.

Definition at line 72 of file internal.h.

◆ list

fsl__pq_entry* fsl__pq::list

The queue.

It is kept sorted by entry->priority.

Definition at line 76 of file internal.h.

◆ used

uint16_t fsl__pq::used

Number of items used in this->list.

Definition at line 74 of file internal.h.


The documentation for this struct was generated from the following file: