reactor-c
1.0
C Runtime for Lingua Franca
Toggle main menu visibility
Loading...
Searching...
No Matches
pqueue.h
Go to the documentation of this file.
1
14
15
#ifndef PQUEUE_H
16
#define PQUEUE_H
17
18
#include "
pqueue_base.h
"
19
26
int
in_reverse_order
(
pqueue_pri_t
thiz,
pqueue_pri_t
that);
27
34
int
in_no_particular_order
(
pqueue_pri_t
thiz,
pqueue_pri_t
that);
35
42
int
reaction_matches
(
void
* a,
void
* b);
43
50
pqueue_pri_t
get_reaction_index
(
void
* reaction);
51
57
size_t
get_reaction_position
(
void
* reaction);
58
65
void
set_reaction_position
(
void
* reaction,
size_t
pos);
66
73
void
print_reaction
(
void
* reaction);
74
75
#endif
/* PQUEUE_H */
get_reaction_position
size_t get_reaction_position(void *reaction)
Return the given reaction's position in the queue.
in_reverse_order
int in_reverse_order(pqueue_pri_t thiz, pqueue_pri_t that)
Return 1 if the first argument is greater than the second and zero otherwise.
print_reaction
void print_reaction(void *reaction)
Print some information about the given reaction.
set_reaction_position
void set_reaction_position(void *reaction, size_t pos)
Set the given reaction's position in the queue.
reaction_matches
int reaction_matches(void *a, void *b)
Return 1 if the two arguments are identical pointers.
in_no_particular_order
int in_no_particular_order(pqueue_pri_t thiz, pqueue_pri_t that)
Return 0 regardless of argument order.
get_reaction_index
pqueue_pri_t get_reaction_index(void *reaction)
Report a priority equal to the index of the given reaction.
pqueue_pri_t
unsigned long long pqueue_pri_t
Priority data type.
Definition
pqueue_base.h:61
pqueue_base.h
Priority Queue function declarations used as a base for Lingua Franca priority queues.
Users
runner
work
reactor-c
reactor-c
include
core
utils
pqueue.h
Generated on
for reactor-c by
1.17.0