We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89b2e29 commit ae8a367Copy full SHA for ae8a367
include/scheduling/scheduling.hpp
@@ -80,8 +80,7 @@ class Array {
80
[[nodiscard]] int Capacity() const { return capacity_; }
81
82
private:
83
- int capacity_;
84
- int mask_;
+ const int capacity_, mask_;
85
std::atomic<T>* buffer_;
86
};
87
@@ -101,7 +100,7 @@ class WorkStealingDeque {
101
100
WorkStealingDeque& operator=(WorkStealingDeque&&) = delete;
102
103
~WorkStealingDeque() noexcept {
104
- for (auto array : garbage_) {
+ for (auto* array : garbage_) {
105
delete array;
106
}
107
delete array_.load();
@@ -582,7 +581,7 @@ class SCHEDULING_API ThreadPool {
582
581
583
584
static thread_local unsigned index_;
585
- unsigned queues_count_;
+ const unsigned queues_count_;
586
std::atomic_flag stop_;
587
std::atomic<unsigned> tasks_count_;
588
std::vector<std::thread> threads_;
0 commit comments