diff options
Diffstat (limited to 'src/mongo/db/client.h')
-rw-r--r-- | src/mongo/db/client.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/client.h b/src/mongo/db/client.h index e7bed7b706f..75e828c63c3 100644 --- a/src/mongo/db/client.h +++ b/src/mongo/db/client.h @@ -76,6 +76,11 @@ public: transport::SessionHandle session); /** + * Same as initThread, but also explicitly sets the client for this thread to be killable. + */ + static void initKillableThread(StringData desc, ServiceContext* serviceContext); + + /** * Moves client into the thread_local for this thread. After this call, Client::getCurrent * and cc() will return client.get(). The client will be destroyed when the thread exits * or the ThreadClient RAII helper exits its scope. |