mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
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:
committed by
Compute-Runtime-Automation
parent
cf21cbc910
commit
6736378c4d
@@ -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;
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user