| 896 | } |
| 897 | |
| 898 | void 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 | |
| 911 | bool CheckHex(const std::string& str) { |
| 912 | size_t data=0; |
no outgoing calls
no test coverage detected