reactor-c 1.0
C Runtime for Lingua Franca
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
27
35
42int reaction_matches(void* a, void* b);
43
51
57size_t get_reaction_position(void* reaction);
58
65void set_reaction_position(void* reaction, size_t pos);
66
73void print_reaction(void* reaction);
74
75#endif /* PQUEUE_H */
size_t get_reaction_position(void *reaction)
Return the given reaction's position in the queue.
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.
void print_reaction(void *reaction)
Print some information about the given reaction.
void set_reaction_position(void *reaction, size_t pos)
Set the given reaction's position in the queue.
int reaction_matches(void *a, void *b)
Return 1 if the two arguments are identical pointers.
int in_no_particular_order(pqueue_pri_t thiz, pqueue_pri_t that)
Return 0 regardless of argument order.
pqueue_pri_t get_reaction_index(void *reaction)
Report a priority equal to the index of the given reaction.
unsigned long long pqueue_pri_t
Priority data type.
Definition pqueue_base.h:61
Priority Queue function declarations used as a base for Lingua Franca priority queues.