Skip to content

Commit

Permalink
remove scan_yield_interval and scan_block_size from class task_schedu…
Browse files Browse the repository at this point in the history
…ler_cfg
  • Loading branch information
YoshiakiNishimura committed Oct 9, 2024
1 parent a1bea8c commit a38af52
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions include/tateyama/task_scheduler/task_scheduler_cfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,22 +179,6 @@ class task_scheduler_cfg {
worker_suspend_timeout_ = arg;
}

[[nodiscard]] std::size_t scan_block_size() const noexcept {
return scan_block_size_;
}

void scan_block_size(std::size_t arg) noexcept {
scan_block_size_ = arg;
}

[[nodiscard]] std::size_t scan_yield_interval() const noexcept {
return scan_yield_interval_;
}

void scan_yield_interval(std::size_t arg) noexcept {
scan_yield_interval_ = arg;
}

friend inline std::ostream& operator<<(std::ostream& out, task_scheduler_cfg const& cfg) {
return out << std::boolalpha <<
"thread_count:" << cfg.thread_count() << " " <<
Expand All @@ -211,8 +195,6 @@ class task_scheduler_cfg {
"watcher_interval:" << cfg.watcher_interval() << " " <<
"worker_try_count:" << cfg.worker_try_count() << " " <<
"worker_suspend_timeout:" << cfg.worker_suspend_timeout() << " " <<
"scan_block_size:" << cfg.scan_block_size() << " " <<
"scan_yield_interval:" << cfg.scan_yield_interval() << " " <<
"";
}

Expand All @@ -231,8 +213,6 @@ class task_scheduler_cfg {
std::size_t watcher_interval_ = 1000;
std::size_t worker_try_count_ = 1000;
std::size_t worker_suspend_timeout_ = 1000000;
std::size_t scan_block_size_ = 100;
std::size_t scan_yield_interval_ = 1;
};

}
Expand Down

0 comments on commit a38af52

Please sign in to comment.