diff options
Diffstat (limited to 'src/mongo/db/operation_context.cpp')
-rw-r--r-- | src/mongo/db/operation_context.cpp | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/src/mongo/db/operation_context.cpp b/src/mongo/db/operation_context.cpp index 703eca38030..a327d2c18f3 100644 --- a/src/mongo/db/operation_context.cpp +++ b/src/mongo/db/operation_context.cpp @@ -34,21 +34,20 @@ namespace mongo { - OperationContext::OperationContext(Client* client, unsigned int opId, Locker* locker) : - _client(client), _opId(opId), _locker(locker) { - } - - Client* OperationContext::getClient() const { - invariant(_client); - return _client; - } - - void OperationContext::markKilled() { - _killPending.store(1); - } - - bool OperationContext::isKillPending() const { - return _killPending.loadRelaxed(); - } +OperationContext::OperationContext(Client* client, unsigned int opId, Locker* locker) + : _client(client), _opId(opId), _locker(locker) {} + +Client* OperationContext::getClient() const { + invariant(_client); + return _client; +} + +void OperationContext::markKilled() { + _killPending.store(1); +} + +bool OperationContext::isKillPending() const { + return _killPending.loadRelaxed(); +} } // namespace mongo |