summaryrefslogtreecommitdiff
path: root/scheduler.h
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2021-10-17 16:12:20 +0200
committerTom Smeding <tom@tomsmeding.com>2021-10-17 16:12:20 +0200
commit4fd25ec14b335414fd96105df6bed64f4882ed1a (patch)
tree1abf432203828de43359f97b018d70229d1f8b36 /scheduler.h
parent006f8b49d9ebe1ca334b934d0a127c0029300871 (diff)
params.h -> command-line arguments
Diffstat (limited to 'scheduler.h')
-rw-r--r--scheduler.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/scheduler.h b/scheduler.h
index 95da7c7..5018a65 100644
--- a/scheduler.h
+++ b/scheduler.h
@@ -17,6 +17,8 @@ class Scheduler {
: callback(callback) {}
};
+ bool verbose;
+
queue<Job*> jobs;
bool finishFlag = false;
mutex commMut;
@@ -25,12 +27,12 @@ class Scheduler {
vector<thread> workers;
- void workerEntry();
+ void workerEntry(bool verbose);
public:
const int nthreads;
- Scheduler(int nthreads);
+ Scheduler(bool verbose, int nthreads);
~Scheduler();
// func is run in child thread