kodi
ThreadImplLinux.h
1 /*
2  * Copyright (C) 2005-2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include "threads/IThreadImpl.h"
12 
14 {
15 public:
16  CThreadImplLinux(std::thread::native_handle_type handle);
17 
18  ~CThreadImplLinux() override = default;
19 
20  void SetThreadInfo(const std::string& name) override;
21 
22  bool SetPriority(const ThreadPriority& priority) override;
23 
24 private:
25  pid_t m_threadID;
26  std::string m_name;
27 };
void SetThreadInfo(const std::string &name) override
Set the thread name and other info (platform dependent)
Definition: ThreadImplLinux.cpp:80
Definition: IThreadImpl.h:17
Definition: ThreadImplLinux.h:13
bool SetPriority(const ThreadPriority &priority) override
Set the thread priority via the native threading library.
Definition: ThreadImplLinux.cpp:89