fix: create thread with function pointer

don't create async thread in neo shared tests

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2024-08-21 14:19:13 +00:00
committed by Compute-Runtime-Automation
parent 90b01ece1a
commit 7ac41615cd
18 changed files with 33 additions and 22 deletions

View File

@@ -419,7 +419,7 @@ struct MockAsyncThreadDebugSessionLinuxi915 : public MockDebugSessionLinuxi915 {
}
void startAsyncThread() override {
asyncThread.thread = NEO::Thread::create(mockAsyncThreadFunction, reinterpret_cast<void *>(this));
asyncThread.thread = NEO::Thread::createFunc(mockAsyncThreadFunction, reinterpret_cast<void *>(this));
}
std::atomic<bool> asyncThreadFinished{false};

View File

@@ -286,7 +286,7 @@ struct MockAsyncThreadDebugSessionLinuxXe : public MockDebugSessionLinuxXe {
}
void startAsyncThread() override {
asyncThread.thread = NEO::Thread::create(mockAsyncThreadFunction, reinterpret_cast<void *>(this));
asyncThread.thread = NEO::Thread::createFunc(mockAsyncThreadFunction, reinterpret_cast<void *>(this));
}
std::atomic<bool> asyncThreadFinished{false};

View File

@@ -154,7 +154,7 @@ struct MockAsyncThreadDebugSessionWindows : public MockDebugSessionWindows {
}
void startAsyncThread() override {
asyncThread.thread = NEO::Thread::create(mockAsyncThreadFunction, reinterpret_cast<void *>(this));
asyncThread.thread = NEO::Thread::createFunc(mockAsyncThreadFunction, reinterpret_cast<void *>(this));
}
std::atomic<bool> asyncThreadFinished{false};