diff options
| author | Douglas Rumbaugh <dbr4@psu.edu> | 2025-09-25 14:42:44 -0400 |
|---|---|---|
| committer | Douglas Rumbaugh <dbr4@psu.edu> | 2025-09-25 14:42:44 -0400 |
| commit | cf5f3bbb0cb58430ed68ad3ebfcefc009e553d71 (patch) | |
| tree | 4c17bc3169ee195c236cea9c9efda0aef7488e3c /include/framework/scheduling/Task.h | |
| parent | 826c1fff5accbaa6b415acc176a5acbeb5f691b6 (diff) | |
| download | dynamic-extension-cf5f3bbb0cb58430ed68ad3ebfcefc009e553d71.tar.gz | |
Code reformatting
Diffstat (limited to 'include/framework/scheduling/Task.h')
| -rw-r--r-- | include/framework/scheduling/Task.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/include/framework/scheduling/Task.h b/include/framework/scheduling/Task.h index 4529b2e..00ddbbb 100644 --- a/include/framework/scheduling/Task.h +++ b/include/framework/scheduling/Task.h @@ -14,9 +14,9 @@ #pragma once #include <chrono> +#include <condition_variable> #include <functional> #include <future> -#include <condition_variable> #include "framework/scheduling/Version.h" #include "framework/scheduling/statistics.h" @@ -24,11 +24,7 @@ namespace de { -enum class ReconstructionPriority { - FLUSH = 0, - CMPCT = 1, - MAINT = 2 -}; +enum class ReconstructionPriority { FLUSH = 0, CMPCT = 1, MAINT = 2 }; template <ShardInterface ShardType, QueryInterface<ShardType> QueryType> struct ReconstructionArgs { @@ -51,7 +47,8 @@ typedef std::function<void(void *)> Job; struct Task { Task(size_t size, size_t ts, Job job, void *args, size_t type = 0, - SchedulerStatistics *stats = nullptr, std::mutex *lk = nullptr, std::condition_variable *cv=nullptr) + SchedulerStatistics *stats = nullptr, std::mutex *lk = nullptr, + std::condition_variable *cv = nullptr) : m_job(job), m_size(size), m_timestamp(ts), m_args(args), m_type(type), m_stats(stats), m_lk(lk), m_cv(cv) {} |