summaryrefslogtreecommitdiff
path: root/src/mongo/executor
diff options
context:
space:
mode:
authorIan Boros <ian.boros@10gen.com>2018-02-20 14:05:46 -0500
committerIan Boros <ian.boros@10gen.com>2018-02-26 12:31:47 -0500
commit2677c5d70bc2ddcf10b3ab1a3df5ad6f1d8abf7f (patch)
tree0cbc53bcc07297d724a80d63c5cdc380824026c4 /src/mongo/executor
parentf23bcbfa6d08c24b5570b3b29641f96babfc6a34 (diff)
downloadmongo-2677c5d70bc2ddcf10b3ab1a3df5ad6f1d8abf7f.tar.gz
SERVER-33282 listen for interrupt while waiting on next event from the ARM
Diffstat (limited to 'src/mongo/executor')
-rw-r--r--src/mongo/executor/task_executor.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/executor/task_executor.h b/src/mongo/executor/task_executor.h
index a36c9544ac3..8ef9e732233 100644
--- a/src/mongo/executor/task_executor.h
+++ b/src/mongo/executor/task_executor.h
@@ -186,12 +186,13 @@ public:
virtual void waitForEvent(const EventHandle& event) = 0;
/**
- * Same as waitForEvent without an OperationContext, but returns Status::OK with
- * cv_status::timeout if the event was not triggered within deadline.
+ * Same as waitForEvent without an OperationContext, but if the OperationContext gets
+ * interrupted, will return the kill code, or, if the the deadline passes, will return
+ * Status::OK with cv_status::timeout.
*/
virtual StatusWith<stdx::cv_status> waitForEvent(OperationContext* opCtx,
const EventHandle& event,
- Date_t deadline) = 0;
+ Date_t deadline = Date_t::max()) = 0;
/**
* Schedules "work" to be run by the executor ASAP.