diff options
| author | Kaz Wesley <[email protected]> | 2016-05-05 11:55:46 -0700 |
|---|---|---|
| committer | Kaz Wesley <[email protected]> | 2016-05-05 13:25:35 -0700 |
| commit | e53e7c54736b98098553ba1a5191e093684f9114 (patch) | |
| tree | 8849c71c722c0ec652da7bf4b062d8c5900a09dc /src/util.cpp | |
| parent | Merge #7840: Several performance and privacy improvements to inv/mempool hand... (diff) | |
| download | discoin-e53e7c54736b98098553ba1a5191e093684f9114.tar.xz discoin-e53e7c54736b98098553ba1a5191e093684f9114.zip | |
don't run ThreadMessageHandler at lowered priority
There's no clear reason ThreadMessageHandler should be low priority.
Fixes #8010 (priority inversion).
Diffstat (limited to 'src/util.cpp')
| -rw-r--r-- | src/util.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/util.cpp b/src/util.cpp index 00b75fbdb..3f0f8be54 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -790,19 +790,6 @@ bool SetupNetworking() return true; } -void SetThreadPriority(int nPriority) -{ -#ifdef WIN32 - SetThreadPriority(GetCurrentThread(), nPriority); -#else // WIN32 -#ifdef PRIO_THREAD - setpriority(PRIO_THREAD, 0, nPriority); -#else // PRIO_THREAD - setpriority(PRIO_PROCESS, 0, nPriority); -#endif // PRIO_THREAD -#endif // WIN32 -} - int GetNumCores() { #if BOOST_VERSION >= 105600 |