aboutsummaryrefslogtreecommitdiff
path: root/src/threading.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/threading.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/threading.cpp b/src/threading.cpp
index 259693a..c7928c1 100644
--- a/src/threading.cpp
+++ b/src/threading.cpp
@@ -105,8 +105,8 @@ THE SOFTWARE.
105 105
106/*---=== Threading ===---*/ 106/*---=== Threading ===---*/
107 107
108// ################################################################################################## 108// #################################################################################################
109// ################################################################################################## 109// #################################################################################################
110#if THREADAPI == THREADAPI_WINDOWS 110#if THREADAPI == THREADAPI_WINDOWS
111 111
112static int const gs_prio_remap[] = 112static int const gs_prio_remap[] =
@@ -120,7 +120,7 @@ static int const gs_prio_remap[] =
120 THREAD_PRIORITY_TIME_CRITICAL 120 THREAD_PRIORITY_TIME_CRITICAL
121}; 121};
122 122
123// ############################################################################################### 123// #################################################################################################
124 124
125void THREAD_SET_PRIORITY(int prio_, [[maybe_unused]] bool sudo_) 125void THREAD_SET_PRIORITY(int prio_, [[maybe_unused]] bool sudo_)
126{ 126{
@@ -131,7 +131,7 @@ void THREAD_SET_PRIORITY(int prio_, [[maybe_unused]] bool sudo_)
131 } 131 }
132} 132}
133 133
134// ############################################################################################### 134// #################################################################################################
135 135
136void JTHREAD_SET_PRIORITY(std::jthread& thread_, int prio_, [[maybe_unused]] bool sudo_) 136void JTHREAD_SET_PRIORITY(std::jthread& thread_, int prio_, [[maybe_unused]] bool sudo_)
137{ 137{
@@ -142,7 +142,7 @@ void JTHREAD_SET_PRIORITY(std::jthread& thread_, int prio_, [[maybe_unused]] boo
142 } 142 }
143} 143}
144 144
145// ############################################################################################### 145// #################################################################################################
146 146
147void THREAD_SET_AFFINITY(unsigned int aff) 147void THREAD_SET_AFFINITY(unsigned int aff)
148{ 148{
@@ -152,7 +152,7 @@ void THREAD_SET_AFFINITY(unsigned int aff)
152 } 152 }
153} 153}
154 154
155// ############################################################################################### 155// #################################################################################################
156 156
157#if !defined __GNUC__ 157#if !defined __GNUC__
158//see http://msdn.microsoft.com/en-us/library/xcb2z8hs.aspx 158//see http://msdn.microsoft.com/en-us/library/xcb2z8hs.aspx
@@ -187,11 +187,11 @@ void THREAD_SETNAME(char const* _name)
187#endif // !__GNUC__ 187#endif // !__GNUC__
188} 188}
189 189
190// ################################################################################################## 190// #################################################################################################
191// ################################################################################################## 191// #################################################################################################
192#else // THREADAPI == THREADAPI_PTHREAD 192#else // THREADAPI == THREADAPI_PTHREAD
193// ################################################################################################## 193// #################################################################################################
194// ################################################################################################## 194// #################################################################################################
195 195
196// PThread (Linux, OS X, ...) 196// PThread (Linux, OS X, ...)
197// 197//