diff options
author | Ben Caimano <ben.caimano@10gen.com> | 2020-11-11 20:12:55 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-12-03 20:34:08 +0000 |
commit | ab78fd25adaea0603cf9497c1acc0d88cb739b84 (patch) | |
tree | e1116636176ea926ef06eb25ae59c219293c445f /src/mongo/transport/service_executor_synchronous.h | |
parent | a3fa43c5f48e8e7c723b463c1f3cabd0b84c1ddb (diff) | |
download | mongo-ab78fd25adaea0603cf9497c1acc0d88cb739b84.tar.gz |
SERVER-52820 Reintroduce yields before waiting for data
Diffstat (limited to 'src/mongo/transport/service_executor_synchronous.h')
-rw-r--r-- | src/mongo/transport/service_executor_synchronous.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/transport/service_executor_synchronous.h b/src/mongo/transport/service_executor_synchronous.h index 826cbfdcf1d..e69e91dc403 100644 --- a/src/mongo/transport/service_executor_synchronous.h +++ b/src/mongo/transport/service_executor_synchronous.h @@ -56,6 +56,10 @@ public: Status shutdown(Milliseconds timeout) override; Status scheduleTask(Task task, ScheduleFlags flags) override; + size_t getRunningThreads() const override { + return _numRunningWorkerThreads.loadRelaxed(); + } + Mode transportMode() const override { return Mode::kSynchronous; } |