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:
Compute-Runtime-Validation
2025-01-09 01:11:44 +01:00
committed by Compute-Runtime-Automation
parent 4cf685cb7d
commit 58707e0cf7
17 changed files with 32 additions and 31 deletions

View File

@@ -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() {