Revert "fix: use condition variables instead of busy waits in worker threads"

This reverts commit 452475a0b9.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
Compute-Runtime-Validation
2025-09-23 16:18:44 +02:00
committed by Compute-Runtime-Automation
parent cf21cbc910
commit 6736378c4d
18 changed files with 65 additions and 216 deletions

View File

@@ -51,7 +51,6 @@ class MockCommandStreamReceiver : public CommandStreamReceiver {
using CommandStreamReceiver::latestSentTaskCount;
using CommandStreamReceiver::localMemoryEnabled;
using CommandStreamReceiver::newResources;
using CommandStreamReceiver::notifyNewSubmission;
using CommandStreamReceiver::numClients;
using CommandStreamReceiver::osContext;
using CommandStreamReceiver::ownershipMutex;

View File

@@ -27,17 +27,8 @@ struct MockUnifiedMemoryReuseCleaner : public UnifiedMemoryReuseCleaner {
UnifiedMemoryReuseCleaner::startThread();
}
};
bool isEmpty() override {
sleepOnEmptyCachesCondVar.store(UnifiedMemoryReuseCleaner::isEmpty());
return sleepOnEmptyCachesCondVar.load();
};
void clearCaches() {
std::lock_guard<std::mutex> lock(svmAllocationCachesMutex);
svmAllocationCaches.clear();
}
std::atomic_bool trimOldInCachesCalled = false;
std::atomic_bool sleepOnEmptyCachesCondVar = false;
bool trimOldInCachesCalled = false;
bool callBaseStartThread = false;
bool callBaseTrimOldInCaches = true;
};
} // namespace NEO
} // namespace NEO