2018-05-22 23:23:39 +08:00
|
|
|
/*
|
2020-01-07 19:11:38 +08:00
|
|
|
* Copyright (C) 2018-2020 Intel Corporation
|
2018-05-22 23:23:39 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2018-05-22 23:23:39 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
#include <memory>
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2018-05-22 23:23:39 +08:00
|
|
|
|
|
|
|
class Thread {
|
|
|
|
public:
|
|
|
|
static std::unique_ptr<Thread> create(void *(*func)(void *), void *arg);
|
|
|
|
virtual void join() = 0;
|
|
|
|
virtual ~Thread() = default;
|
|
|
|
};
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|