Re: [linux-audio-dev] jack_callback <-> rest of the world

From: Richard Spindler <richard.spindler@email-addr-hidden>
Date: Sun Oct 30 2005 - 09:28:56 EET

2005/10/30, Lars Luthman <larsl@email-addr-hidden>:
> It depends on how detailed information you want in the non-RT thread. If
> you just want to say "something happened!" you can use a counter of a
> datatype that you know is read and written atomically (int usually
> works) and increase it every time something happens. The non-RT thread
> can then compare the counter's value to the value it had last time it
> looked at it, and if it's different it knows that something has
> happened.

This would imply busy waiting, right?

related question, what happens if I use the lockfree ringbuffer, and
the non-realtime-thread tries to access it while it's full, how do I
know when to try again?

BTW. @all: thx for all the detailed answers.

-Richard
Received on Sun Oct 30 12:15:04 2005

This archive was generated by hypermail 2.1.8 : Sun Oct 30 2005 - 12:15:04 EET