diff options
Diffstat (limited to 'src/mongo/transport/baton.h')
-rw-r--r-- | src/mongo/transport/baton.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/transport/baton.h b/src/mongo/transport/baton.h index d26d936c99c..549e84b32a6 100644 --- a/src/mongo/transport/baton.h +++ b/src/mongo/transport/baton.h @@ -87,6 +87,14 @@ public: virtual void schedule(stdx::function<void()> func) = 0; /** + * Wakes the Baton up if it is currently blocked, or ensures that the next time it tries to + * block it is woken immediately. + * + * Does not actually schedule any work. + */ + virtual void notify() noexcept = 0; + + /** * Adds a session, returning a future which activates on read/write-ability of the session. */ enum class Type { |