summaryrefslogtreecommitdiff
path: root/tpool/tpool.h
diff options
context:
space:
mode:
Diffstat (limited to 'tpool/tpool.h')
-rw-r--r--tpool/tpool.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tpool/tpool.h b/tpool/tpool.h
index 5ce886d83b5..f0b2b9f6735 100644
--- a/tpool/tpool.h
+++ b/tpool/tpool.h
@@ -68,8 +68,10 @@ private:
std::condition_variable m_cv;
unsigned int m_tasks_running;
unsigned int m_max_concurrent_tasks;
+ const bool m_enable_task_release;
+
public:
- task_group(unsigned int max_concurrency= 100000);
+ task_group(unsigned int max_concurrency= 100000, bool m_enable_task_release= true);
void set_max_tasks(unsigned int max_concurrent_tasks);
void execute(task* t);
void cancel_pending(task *t);