mirror of
https://github.com/systemd/systemd.git
synced 2024-11-08 11:27:32 +03:00
Merge pull request #1403 from dvdhrm/prioq-comment
prioq: add introduction comment
This commit is contained in:
commit
9d66db1d03
@ -19,6 +19,16 @@
|
|||||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||||
***/
|
***/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Priority Queue
|
||||||
|
* The prioq object implements a priority queue. That is, it orders objects by
|
||||||
|
* their priority and allows O(1) access to the object with the highest
|
||||||
|
* priority. Insertion and removal are Θ(log n). Optionally, the caller can
|
||||||
|
* provide a pointer to an index which will be kept up-to-date by the prioq.
|
||||||
|
*
|
||||||
|
* The underlying algorithm used in this implementation is a Heap.
|
||||||
|
*/
|
||||||
|
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "prioq.h"
|
#include "prioq.h"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user