- Forwarded message from Fons Adriaensen -
Date: Thu, 19 May 2022 22:22:12 +0200
From: Fons Adriaensen
To: "Jeanette C."
On Thu, May 19, 2022 at 07:52:33PM +0200, Jeanette C. wrote:
> I know about one or two applications that use the timeofday/sleep mechanism,
> but from first hand e
On 5/19/22 22:27, Fons Adriaensen wrote:
> Don't know about Apple. Last time I looked it didn't have clock_gettime(),
While there is a corresponding mach/clock.h, for the case at hand it is
preferable to use Apple's Core Audio, CoreMIDI. MIDI Event scheduling is
abstracted, and there is dedicated
On Thu, May 19, 2022 at 10:40:48PM +0200, Robin Gareus wrote:
> While there is a corresponding mach/clock.h, for the case at hand it is
> preferable to use Apple's Core Audio, CoreMIDI. MIDI Event scheduling is
> abstracted, and there is dedicated API to convert timestamped events
> with high pre
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 calcul
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