print warning

This commit is contained in:
fireice-uk
2017-10-11 23:59:17 +01:00
parent c897fc0451
commit da070d4259
+2 -1
View File
@@ -305,7 +305,8 @@ void minethd::pin_thd_affinity()
#if defined(__APPLE__)
printer::inst()->print_msg(L1, "WARNING on MacOS thread affinity is only advisory.");
#endif
thd_setaffinity(oWorkThd.native_handle(), affinity);
if(!thd_setaffinity(oWorkThd.native_handle(), affinity))
printer::inst()->print_msg(L1, "WARNING setting affinity failed.");
}
void minethd::work_main()