mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-27 00:58:36 +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.cpp.std=c++17
|
||||
sonar.exclusions=3rdparty/**
|
||||
sonar.cfamily.threads=4
|
||||
|
@ -222,11 +222,12 @@ void init_pulseaudio(struct text_object *obj) {
|
||||
pa_threaded_mainloop_start(pulseaudio->mainloop);
|
||||
|
||||
while (pulseaudio->cstate != PULSE_CONTEXT_READY) {
|
||||
struct timespec tim, tim2;
|
||||
tim.tv_sec = 1;
|
||||
tim.tv_nsec = 200000;
|
||||
struct timespec req;
|
||||
struct timespec rem;
|
||||
req.tv_sec = 1;
|
||||
req.tv_nsec = 200000;
|
||||
|
||||
nanosleep(&tim, &tim2);
|
||||
nanosleep(&req, &rem);
|
||||
}
|
||||
|
||||
// Initial parameters update
|
||||
|
Loading…
x
Reference in New Issue
Block a user