mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-22 10:17:01 +08:00
Revert "refactor: migration to std::make_unique C++17"
This reverts commit 4cf685cb7d.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
4cf685cb7d
commit
58707e0cf7
@@ -17,7 +17,7 @@ decltype(&Thread::create) Thread::createFunc = Thread::create;
|
||||
std::unique_ptr<Thread> Thread::create(void *(*func)(void *), void *arg) {
|
||||
pthread_t threadId;
|
||||
pthread_create(&threadId, nullptr, func, arg);
|
||||
return std::make_unique<ThreadLinux>(threadId);
|
||||
return std::unique_ptr<Thread>(new ThreadLinux(threadId));
|
||||
}
|
||||
|
||||
void ThreadLinux::join() {
|
||||
|
||||
Reference in New Issue
Block a user