2 * Copyright (C) 2005-2022 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
11 #include "threads/Thread.h"
20 virtual ~IThreadImpl() = default;
22 static std::unique_ptr
<IThreadImpl
> CreateThreadImpl(std::thread::native_handle_type handle
);
25 * \brief Set the thread name and other info (platform dependent)
28 virtual void SetThreadInfo(const std::string
& name
) = 0;
31 * \brief Set the thread priority via the native threading library
34 virtual bool SetPriority(const ThreadPriority
& priority
) = 0;
37 IThreadImpl(std::thread::native_handle_type handle
) : m_handle(handle
) {}
39 std::thread::native_handle_type m_handle
;
42 IThreadImpl() = delete;