|
libjmmcg
release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
|
#include "../core/application.hpp"#include <boost/exception/diagnostic_information.hpp>#include <boost/program_options.hpp>#include <filesystem>#include <fstream>#include <iostream>#include <sys/time.h>#include <sys/resource.h>Go to the source code of this file.
Classes | |
| struct | header_guard_t |
Functions | |
| auto | get_sched_min_max () noexcept(false) |
| int | main (int argc, char const *const *argv) noexcept(true) |
| Discover the minimum and maximum scheduler-priorities on the current system. More... | |
Variables | |
| constexpr const char | copyright [] |
| constexpr const char | header_guard_postfix [] ="#endif\n" |
| const int | schedule_policy =SCHED_OTHER |
|
noexcept |
Definition at line 90 of file scheduler_priorities.cpp.
References schedule_policy.
|
noexcept |
Discover the minimum and maximum scheduler-priorities on the current system.
Definition at line 112 of file scheduler_priorities.cpp.
References jmmcg::LIBJMMCG_VER_NAMESPACE::exit_codes::exit_print_help, jmmcg::LIBJMMCG_VER_NAMESPACE::exit_codes::exit_print_version, jmmcg::LIBJMMCG_VER_NAMESPACE::exit_codes::exit_stl_exception, jmmcg::LIBJMMCG_VER_NAMESPACE::exit_codes::exit_success, jmmcg::LIBJMMCG_VER_NAMESPACE::exit_codes::exit_unknown_exception, and jmmcg::LIBJMMCG_VER_NAMESPACE::exit_codes::exit_unknown_failure.
|
constexpr |
Definition at line 31 of file scheduler_priorities.cpp.
|
constexpr |
Definition at line 49 of file scheduler_priorities.cpp.
Referenced by header_guard_t::~header_guard_t().
| const int schedule_policy =SCHED_OTHER |
const int schedule_policy=SCHED_FIFO;
This may be done thus:
sudo setcap 'CAP_SYS_RESOURCE=+ep' /path/to/executable
If SCHED_OTHER is used then basically one cannot set the priority, as the min & max are both set to zero.
const int schedule_policy=SCHED_FIFO;
This may be done thus:
sudo setcap 'CAP_SYS_RESOURCE=+ep' /path/to/executable
If SCHED_OTHER is used then basically one cannot set the priority, as the min & max are both set to zero.
Definition at line 62 of file scheduler_priorities.cpp.
Referenced by get_sched_min_max().