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:
parent
8e1d3cfdd3
commit
4ef597da92
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user