1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-17 18:45:10 +00:00

Parallelize sonar execution.

This commit is contained in:
Brenden Matthews 2018-12-22 19:19:57 -05:00
parent 8e1d3cfdd3
commit 4ef597da92
No known key found for this signature in database
GPG Key ID: 60FBD122E62B0D30
2 changed files with 6 additions and 4 deletions

View File

@ -4,3 +4,4 @@ sonar.sources=src
sonar.cfamily.build-wrapper-output=build/bw-output sonar.cfamily.build-wrapper-output=build/bw-output
sonar.cpp.std=c++17 sonar.cpp.std=c++17
sonar.exclusions=3rdparty/** sonar.exclusions=3rdparty/**
sonar.cfamily.threads=4

View File

@ -222,11 +222,12 @@ void init_pulseaudio(struct text_object *obj) {
pa_threaded_mainloop_start(pulseaudio->mainloop); pa_threaded_mainloop_start(pulseaudio->mainloop);
while (pulseaudio->cstate != PULSE_CONTEXT_READY) { while (pulseaudio->cstate != PULSE_CONTEXT_READY) {
struct timespec tim, tim2; struct timespec req;
tim.tv_sec = 1; struct timespec rem;
tim.tv_nsec = 200000; req.tv_sec = 1;
req.tv_nsec = 200000;
nanosleep(&tim, &tim2); nanosleep(&req, &rem);
} }
// Initial parameters update // Initial parameters update