kodi
ThreadImplWin.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 #include "threads/SingleLock.h"
13 
15 {
16 public:
17  CThreadImplWin(std::thread::native_handle_type handle);
18 
19  ~CThreadImplWin() override = default;
20 
21  void SetThreadInfo(const std::string& name) override;
22 
23  bool SetPriority(const ThreadPriority& priority) override;
24 
25 private:
26  CCriticalSection m_criticalSection;
27 };
bool SetPriority(const ThreadPriority &priority) override
Set the thread priority via the native threading library.
Definition: ThreadImplWin.cpp:96
void SetThreadInfo(const std::string &name) override
Set the thread name and other info (platform dependent)
Definition: ThreadImplWin.cpp:61
Definition: ThreadImplWin.h:14
Definition: IThreadImpl.h:17