Re: [LAD] [Jack-Devel] jack2's dbus name

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-audio-dev@...>
Date: Thursday, June 18, 2009 - 11:44 pm

On Fri, 19.06.09 01:23, Fons Adriaensen (fons@kokkinizita.net) wrote:

>

No. I don't "wait" and not for the end of the current period. All I do
is set a maximum limit to how much non-IO work I do in the RT loop per
iteration.

Uh, I actually admit that the pseudocode I posted in
http://lists.linuxaudio.org/pipermail/linux-audio-dev/2009-June/023380.h...

is completely broken. Sorry for the confusion. The one I was describing down on

http://lists.linuxaudio.org/pipermail/linux-audio-dev/2009-June/023370.h...

was correct.

So, another try:

for (;;) {
n = jack_client_wait()
process(n);
jack_cycle_signal();
while (jack_frames_since_cycle_start() < threshold) {
if (no_private_events_to_process())
break;
process_one_of_my_private_events();
}
}

The early exit in the inner loop when there's nothing to do (which is
the usual case) is the key point here, I guess.

Sorry for the confusion.

Lennart

--
Lennart Poettering Red Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/ GnuPG 0x1A015CC4
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [LAD] jack2's dbus name, Stéphane Letz, (Mon Jun 15, 9:05 am)
Re: [LAD] jack2's dbus name, Lennart Poettering, (Mon Jun 15, 12:59 pm)
Re: [LAD] jack2's dbus name, Stéphane Letz, (Mon Jun 15, 1:38 pm)
Re: [LAD] jack2's dbus name, Lennart Poettering, (Mon Jun 15, 2:37 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Lennart Poettering, (Thu Jun 18, 4:21 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Nedko Arnaudov, (Fri Jun 19, 7:08 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Paul Davis, (Thu Jun 18, 5:52 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Lennart Poettering, (Thu Jun 18, 6:46 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Paul Davis, (Thu Jun 18, 6:49 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Lennart Poettering, (Thu Jun 18, 7:13 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Paul Davis, (Thu Jun 18, 9:41 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Lennart Poettering, (Thu Jun 18, 10:34 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Fons Adriaensen, (Thu Jun 18, 11:28 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Lennart Poettering, (Thu Jun 18, 11:44 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Stéphane Letz, (Fri Jun 19, 6:45 am)
Re: [LAD] [Jack-Devel] jack2's dbus name, Lennart Poettering, (Fri Jun 19, 1:00 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Lennart Poettering, (Fri Jun 19, 1:43 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Stéphane Letz, (Fri Jun 19, 2:03 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Lennart Poettering, (Fri Jun 19, 2:13 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Paul Davis, (Thu Jun 18, 11:57 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Lennart Poettering, (Fri Jun 19, 12:28 am)
Re: [LAD] [Jack-Devel] jack2's dbus name, Paul Davis, (Fri Jun 19, 2:39 am)
Re: [LAD] [Jack-Devel] jack2's dbus name, Jussi Laako, (Thu Jun 18, 5:12 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Lennart Poettering, (Thu Jun 18, 7:00 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Jussi Laako, (Thu Jun 18, 8:28 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Florian Schirmer, (Thu Jun 18, 9:20 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Jussi Laako, (Thu Jun 18, 11:03 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Lennart Poettering, (Thu Jun 18, 8:46 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Jussi Laako, (Thu Jun 18, 10:56 pm)
Re: [LAD] [Jack-Devel] jack2's dbus name, Lennart Poettering, (Thu Jun 18, 10:59 pm)
Re: [LAD] jack2's dbus name, Fernando Lopez-Lezcano, (Mon Jun 15, 5:16 pm)
Re: [LAD] jack2's dbus name, Lennart Poettering, (Mon Jun 15, 5:34 pm)
Re: [LAD] jack2's dbus name, Fernando Lopez-Lezcano, (Mon Jun 15, 6:37 pm)
Re: [LAD] jack2's dbus name, Lennart Poettering, (Mon Jun 15, 6:54 pm)
Re: [LAD] jack2's dbus name, alex stone, (Mon Jun 15, 6:36 pm)
Re: [LAD] jack2's dbus name, Jussi Laako, (Tue Jun 16, 6:19 pm)
Re: [LAD] jack2's dbus name, Stéphane Letz, (Mon Jun 15, 3:03 pm)