On Thu, May 19, 2022 at 11:17:28PM +0200, Jeanette C. wrote: > Thanks both of you. Based on timed_wait, I looked at the boost libraries and > found two candidates in the Thread library: > conditional_varaible::timed_wait > and > thread::sleep_until > which can both take an absolute time. I suppose both should be equally > usable, since again absolute time can be calculated independent of the last > wait/sleep?
Better check how this is implemented. It could just use usleep(). And then all precision is lost, even if the sleep times are adjusted to compensate for the latency of the previous event. Ciao, -- FA _______________________________________________ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org https://lists.linuxaudio.org/listinfo/linux-audio-dev