fairness  v1.0.0
A collection of advanced syncronization mechanisms.
Loading...
Searching...
No Matches
priority_t.hpp
Go to the documentation of this file.
1
13#ifndef BOOST_FAIRNESS_PRIORITY_T_HPP
14#define BOOST_FAIRNESS_PRIORITY_T_HPP
15#include <cstdint>
16namespace boost::fairness{
17 using Priority_t = uint8_t;
24 #define BOOST_FAIRNESS_MAXIMUM_PRIORITY Priority_t(-1)
29 #define BOOST_FAIRNESS_INVALID_PRIORITY Priority_t(-1)
36 #define BOOST_FAIRNESS_MINIMUM_PRIORITY 0
37
48
49} // namespace boost::fairness
50#endif // BOOST_FAIRNESS_PRIORITY_T_HPP
Definition acquisition_modes.hpp:16
uint8_t Priority_t
Definition priority_t.hpp:17
bool is_valid_priority(Priority_t const p)
allows you to verify that an input priority is valid. Has to be in the range [BOOST_FAIRNESS_MINIMUM_...
Definition priority_t.hpp:45
#define BOOST_FAIRNESS_MAXIMUM_PRIORITY
Priorities are indexes in an array, that means that if I define a priority_mutex<BOOST_FAIRNESS_MAXIM...
Definition priority_t.hpp:24
#define BOOST_FAIRNESS_MINIMUM_PRIORITY
Priorities are indexes in an array, that means that if I define a priority_mutex<BOOST_FAIRNESS_MAXIM...
Definition priority_t.hpp:36