diff options
| author | Dan Engelbrecht <[email protected]> | 2025-09-10 16:38:33 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-09-10 16:38:33 +0200 |
| commit | 339668ac935f781c06225d2d685642e27348772b (patch) | |
| tree | a5552d166eef9b5c72a2f9a6903e584dfc8968d7 /src/zencore/zencore.cpp | |
| parent | faster oplog entries with referenceset (#488) (diff) | |
| download | zen-339668ac935f781c06225d2d685642e27348772b.tar.xz zen-339668ac935f781c06225d2d685642e27348772b.zip | |
add EMode to WorkerTheadPool to avoid thread starvation (#492)
- Improvement: Add a new mode to worker thread pools to avoid starvation of workers which could cause long stalls due to other work begin queued up. UE-305498
Diffstat (limited to 'src/zencore/zencore.cpp')
| -rw-r--r-- | src/zencore/zencore.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/zencore/zencore.cpp b/src/zencore/zencore.cpp index 51e06ae14..5a6232318 100644 --- a/src/zencore/zencore.cpp +++ b/src/zencore/zencore.cpp @@ -350,9 +350,10 @@ TEST_CASE("Assert.Callstack") WorkerThreadPool Pool(1); auto Task = Pool.EnqueueTask(std::packaged_task<int()>{[] { - ZEN_ASSERT(false); - return 1; - }}); + ZEN_ASSERT(false); + return 1; + }}, + WorkerThreadPool::EMode::EnableBacklog); try { |