diff options
Diffstat (limited to 'include/ditto/multithreading_utils.h')
-rw-r--r-- | include/ditto/multithreading_utils.h | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/include/ditto/multithreading_utils.h b/include/ditto/multithreading_utils.h index b1ca472..b8295be 100644 --- a/include/ditto/multithreading_utils.h +++ b/include/ditto/multithreading_utils.h @@ -21,6 +21,7 @@ #endif #include <ditto/logger.h> +#include <ditto/syscall.h> #include <sys/syscall.h> #include <unistd.h> @@ -37,23 +38,6 @@ enum SchedPolicy { SchedDeadline = 6, }; -struct SchedAttr__ { - uint32_t size; /* Size of this structure */ - uint32_t sched_policy; /* Policy (SCHED_*) */ - uint64_t sched_flags; /* Flags */ - - int32_t sched_nice; /* Nice value (SCHED_OTHER, - SCHED_BATCH) */ - uint32_t sched_priority; /* Static priority (SCHED_FIFO, - SCHED_RR) */ - /* Remaining fields are for SCHED_DEADLINE */ - uint64_t sched_runtime; - uint64_t sched_deadline; - uint64_t sched_period; -}; - -std::string to_string(const SchedAttr__& attr); - class SchedAttr { bool initialized_ = false; SchedAttr__ sched_attr_; |