reactor-c 1.0
C Runtime for Lingua Franca
Loading...
Searching...
No Matches
pqueue.h File Reference

Priority queue definitions for queues where the priority is a number that can be compared with ordinary numerical comparisons. More...

#include "pqueue_base.h"

Go to the source code of this file.

Functions

pqueue_pri_t get_reaction_index (void *reaction)
 Report a priority equal to the index of the given reaction.
size_t get_reaction_position (void *reaction)
 Return the given reaction's position in the queue.
int in_no_particular_order (pqueue_pri_t thiz, pqueue_pri_t that)
 Return 0 regardless of argument 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.
void print_reaction (void *reaction)
 Print some information about the given reaction.
int reaction_matches (void *a, void *b)
 Return 1 if the two arguments are identical pointers.
void set_reaction_position (void *reaction, size_t pos)
 Set the given reaction's position in the queue.

Detailed Description

Priority queue definitions for queues where the priority is a number that can be compared with ordinary numerical comparisons.

Author
Marten Lohstroh
Edward A. Lee
Byeonggil Jun

This is used for the reaction queue. The event queue uses a tag_t struct for its priority, so it cannot use this.