summaryrefslogtreecommitdiffstats
path: root/docs/release/scenarios/os-nosdn-performance-ha/index.rst
blob: e0dbca7ff23cfe13ba3e05e6dd569ee96ebae045 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
.. _os-nosdn-performance-ha:

.. This work is licensed under a Creative Commons Attribution 4.0 International Licence.
.. http://creativecommons.org/licenses/by/4.0
.. (c) <optionally add copywriters name>

================================================
os-nosdn-performance-ha overview and description
================================================

.. toctree::
   :numbered:
   :maxdepth: 4

   os-nosdn-performance-ha.rst
> heap { uint64_t n_elems; struct heap_elem *top; uint64_t n_avail; struct heap_elem *avail[0]; }; static uint64_t heap_n_elems(const struct heap *h) { return h->n_elems; } static int heap_is_empty(const struct heap *h) { return !h->n_elems; } int heap_top_is_lower(struct heap *h, uint64_t prio); void heap_print(struct heap *h, char *result, size_t buf_len); struct heap *heap_create(uint32_t max_elems, int socket_id); void heap_add(struct heap *h, struct heap_ref *ref, uint64_t priority); void heap_del(struct heap *h, struct heap_ref *del); struct heap_ref *heap_pop(struct heap *h); #endif /* _HEAP_H_ */