| 2269 | } |
| 2270 | |
| 2271 | BFP_EXPORT void BFP_CALLTYPE BfpThread_SetPriority(BfpThread* thread, BfpThreadPriority threadPriority, BfpThreadResult* outResult) |
| 2272 | { |
| 2273 | // Coincidentally, our priority values map to (THREAD_PRIORITY_LOWEST, THREAD_PRIORITY_BELOW_NORMAL, THREAD_PRIORITY_NORMAL, THREAD_PRIORITY_ABOVE_NORMAL, THREAD_PRIORITY_HIGHEST) |
| 2274 | if (::SetThreadPriority((HANDLE)thread, (int)threadPriority)) |
| 2275 | OUTRESULT(BfpThreadResult_Ok); |
| 2276 | else |
| 2277 | OUTRESULT(BfpThreadResult_UnknownError); |
| 2278 | } |
| 2279 | |
| 2280 | BFP_EXPORT void BFP_CALLTYPE BfpThread_Suspend(BfpThread* thread, BfpThreadResult* outResult) |
| 2281 | { |
no outgoing calls
no test coverage detected