We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0b2fa6 commit a7b8c7fCopy full SHA for a7b8c7f
main.cpp
@@ -377,7 +377,10 @@ void signalHandler(int signum) {
377
}
378
379
int main(int argc, char** argv) {
380
-#ifndef _WIN32
+#ifdef _WIN32
381
+ // Set lower priority, else the whole Windows system would lag a lot if using all threads
382
+ SetPriorityClass(GetCurrentProcess(), BELOW_NORMAL_PRIORITY_CLASS);
383
+#else
384
struct sigaction SIGINTHandler;
385
SIGINTHandler.sa_handler = signalHandler;
386
sigemptyset(&SIGINTHandler.sa_mask);
0 commit comments