diff options
Diffstat (limited to 'src/mongo/util/concurrency/thread_pool.h')
| -rw-r--r-- | src/mongo/util/concurrency/thread_pool.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/util/concurrency/thread_pool.h b/src/mongo/util/concurrency/thread_pool.h index 29acd9e09c0..1cbd6b8b263 100644 --- a/src/mongo/util/concurrency/thread_pool.h +++ b/src/mongo/util/concurrency/thread_pool.h @@ -147,6 +147,11 @@ public: // from ThreadPoolInterface void startup() override; void shutdown() override; + + /** + * Joins all scheduled tasks. Can also spawn a free thread that ignores maxThread options to + * execute pending tasks. + */ void join() override; /** @@ -158,6 +163,8 @@ public: * * May be called multiple times, by multiple threads. May not be called by a task in the thread * pool. + * + * Not safe to use when shutdown can be called concurrently. */ void waitForIdle(); |
