mirror of https://github.com/BOINC/boinc.git
client: Initialize diagnostics framework for the sub-second CPU throttler.
This commit is contained in:
parent
2cd108af7e
commit
310acf1892
|
@ -1002,6 +1002,11 @@ DWORD WINAPI throttler(LPVOID) {
|
||||||
#else
|
#else
|
||||||
void* throttler(void*) {
|
void* throttler(void*) {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Initialize diagnostics framework for this thread
|
||||||
|
//
|
||||||
|
diagnostics_thread_init(BOINC_DIAG_DEFAULTS);
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
client_mutex.lock();
|
client_mutex.lock();
|
||||||
if (gstate.tasks_suspended || gstate.global_prefs.cpu_usage_limit > 99) {
|
if (gstate.tasks_suspended || gstate.global_prefs.cpu_usage_limit > 99) {
|
||||||
|
|
Loading…
Reference in New Issue