3 #include <boost/test/unit_test.hpp> 13 BOOST_CHECK_EQUAL(tested.
name(),
"");
48 BOOST_CHECK_LE(tested.
native_priority(), sched_get_priority_max(SCHED_FIFO));
49 BOOST_CHECK_GE(tested.
native_priority(), sched_get_priority_min(SCHED_FIFO));
62 char const contents[] = R
"""(# YAML overrides 69 std::istringstream is(contents); 79 BOOST_CHECK_EQUAL(tested.
affinity(), cpus);
int native_priority() const
void load_overrides(int &argc, char *argv[], std::string const &filename, char const *environment_variable_name)
Read the configuration file and load the overrides defined therein.
jb::config_attribute< thread_config, jb::cpu_set > affinity
Hold the configuration to initialize threads.
int native_scheduling_policy() const
jb::config_attribute< thread_config, std::string > scheduler
BOOST_AUTO_TEST_CASE(thread_config_basic)
cpu_set & set(int cpu)
Add cpu to the cpu set.
jb::config_attribute< thread_config, std::string > name
A wrapper for the Linux CPU_SET data structure.
jb::config_attribute< thread_config, std::string > priority