Files
compute-runtime/shared/source/os_interface/os_thread.h
Mateusz Hoppe 0d85f6ccc7 Add yield() method to Thread
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-04-20 13:32:14 +02:00

20 lines
355 B
C++

/*
* Copyright (C) 2018-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include <memory>
namespace NEO {
class Thread {
public:
static std::unique_ptr<Thread> create(void *(*func)(void *), void *arg);
virtual void join() = 0;
virtual ~Thread() = default;
virtual void yield() = 0;
};
} // namespace NEO