MCPcopy Create free account
hub / github.com/LUX-Core/lux / SetThreadPriority

Function SetThreadPriority

src/util.cpp:898–909  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

896}
897
898void SetThreadPriority(int nPriority)
899{
900#ifdef WIN32
901 SetThreadPriority(GetCurrentThread(), nPriority);
902#else // WIN32
903#ifdef PRIO_THREAD
904 setpriority(PRIO_THREAD, 0, nPriority);
905#else // PRIO_THREAD
906 setpriority(PRIO_PROCESS, 0, nPriority);
907#endif // PRIO_THREAD
908#endif // WIN32
909}
910
911bool CheckHex(const std::string& str) {
912 size_t data=0;

Callers 3

GenBlockStakeMethod · 0.85
StakingThreadMethod · 0.85
ThreadMessageHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected