mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
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:
committed by
Compute-Runtime-Automation
parent
90b01ece1a
commit
7ac41615cd
@@ -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};
|
||||
|
||||
@@ -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};
|
||||
|
||||
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user