MCPcopy Create free account
hub / github.com/beefytech/Beef / BfpThread_SetPriority

Function BfpThread_SetPriority

BeefySysLib/platform/win/Platform.cpp:2271–2278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2269}
2270
2271BFP_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
2280BFP_EXPORT void BFP_CALLTYPE BfpThread_Suspend(BfpThread* thread, BfpThreadResult* outResult)
2281{

Callers 3

WinBFAppMethod · 0.70
StartMethod · 0.50
SetPriorityNativeMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected