aboutsummaryrefslogtreecommitdiff
path: root/xbmc/platform/posix/threads/ThreadImplPosix.h
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/platform/posix/threads/ThreadImplPosix.h')
-rw-r--r--xbmc/platform/posix/threads/ThreadImplPosix.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/xbmc/platform/posix/threads/ThreadImplPosix.h b/xbmc/platform/posix/threads/ThreadImplPosix.h
new file mode 100644
index 0000000000..6e2a98de42
--- /dev/null
+++ b/xbmc/platform/posix/threads/ThreadImplPosix.h
@@ -0,0 +1,29 @@
+/*
+ * Copyright (C) 2005-2018 Team Kodi
+ * This file is part of Kodi - https://kodi.tv
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * See LICENSES/README.md for more information.
+ */
+
+#pragma once
+
+#include "threads/IThreadImpl.h"
+#include "threads/SingleLock.h"
+
+class CThreadImplPosix : public IThreadImpl
+{
+public:
+ CThreadImplPosix(std::thread::native_handle_type handle);
+
+ ~CThreadImplPosix() override = default;
+
+ void SetThreadInfo(const std::string& name) override;
+
+ bool SetPriority(const ThreadPriority& priority) override;
+
+private:
+ CCriticalSection m_criticalSection;
+
+ pid_t m_threadID;
+};