1- #ifndef LIBKIWI_CORE_THREAD_H
2- #define LIBKIWI_CORE_THREAD_H
1+ #ifndef LIBKIWI_CORE_STD_THREAD_H
2+ #define LIBKIWI_CORE_STD_THREAD_H
33#include < libkiwi/debug/kiwiAssert.h>
44#include < libkiwi/k_types.h>
55
@@ -16,7 +16,7 @@ namespace detail {
1616/* *
1717 * @brief Common thread implementation
1818 */
19- class ThreadImpl {
19+ class StdThreadImpl {
2020public:
2121 /* *
2222 * @brief Waits for this thread to finish executing
@@ -27,11 +27,11 @@ class ThreadImpl {
2727 /* *
2828 * @brief Constructor
2929 */
30- ThreadImpl ();
30+ StdThreadImpl ();
3131 /* *
3232 * @brief Destructor
3333 */
34- ~ThreadImpl ();
34+ ~StdThreadImpl ();
3535
3636 /* *
3737 * @brief Begins execution on this thread
@@ -77,7 +77,7 @@ class ThreadImpl {
7777 * @details Similar to std::thread.
7878 * @note Only allows GPR arguments
7979 */
80- class Thread : public detail ::ThreadImpl {
80+ class StdThread : public detail ::StdThreadImpl {
8181public:
8282 // Thread function parameter
8383 typedef void * Param;
@@ -92,14 +92,14 @@ class Thread : public detail::ThreadImpl {
9292 *
9393 * @param pFunc Static, no-parameter function
9494 */
95- template <typename TRet> Thread (TRet (*pFunc)());
95+ template <typename TRet> StdThread (TRet (*pFunc)());
9696 /* *
9797 * @brief Constructor
9898 *
9999 * @param pFunc Static, single-parameter function
100100 * @param pArg Function argument
101101 */
102- template <typename TRet> Thread (TRet (*pFunc)(Param), Param pArg);
102+ template <typename TRet> StdThread (TRet (*pFunc)(Param), Param pArg);
103103 /* *@}*/
104104
105105 /* *
@@ -113,7 +113,7 @@ class Thread : public detail::ThreadImpl {
113113 * @param rObj Class instance
114114 */
115115 template <typename TRet, typename TClass>
116- Thread (TRet (TClass::*pFunc)(), TClass& rObj);
116+ StdThread (TRet (TClass::*pFunc)(), TClass& rObj);
117117 /* *
118118 * @brief Constructor
119119 *
@@ -122,7 +122,7 @@ class Thread : public detail::ThreadImpl {
122122 * @param pArg Function argument
123123 */
124124 template <typename TRet, typename TClass>
125- Thread (TRet (TClass::*pFunc)(Param), TClass& rObj, Param pArg);
125+ StdThread (TRet (TClass::*pFunc)(Param), TClass& rObj, Param pArg);
126126 /* *@}*/
127127
128128 /* *
@@ -136,7 +136,7 @@ class Thread : public detail::ThreadImpl {
136136 * @param rObj Class instance
137137 */
138138 template <typename TRet, typename TClass>
139- Thread (TRet (TClass::*pFunc)() const , const TClass& rObj);
139+ StdThread (TRet (TClass::*pFunc)() const , const TClass& rObj);
140140 /* *
141141 * @brief Constructor
142142 *
@@ -145,7 +145,8 @@ class Thread : public detail::ThreadImpl {
145145 * @param pArg Function argument
146146 */
147147 template <typename TRet, typename TClass>
148- Thread (TRet (TClass::*pFunc)(Param) const , const TClass& rObj, Param pArg);
148+ StdThread (TRet (TClass::*pFunc)(Param) const , const TClass& rObj,
149+ Param pArg);
149150 /* *@}*/
150151};
151152
@@ -154,7 +155,7 @@ class Thread : public detail::ThreadImpl {
154155
155156// Implementation header
156157#ifndef LIBKIWI_CORE_THREAD_IMPL_HPP
157- #include < libkiwi/core/kiwiThreadImpl .hpp>
158+ #include < libkiwi/core/kiwiStdThreadImpl .hpp>
158159#endif
159160
160161#endif
0 commit comments