Re: [Jack-Devel] Stopping jack from callback

PrevNext  Index
DateThu, 15 Aug 2013 14:40:55 +0200
From Anders Tornvig <[hidden] at gmail dot com>
ToHarry van Haaren <[hidden] at gmail dot com>
CcJACK <[hidden] at lists dot jackaudio dot org>
In-Reply-ToHarry van Haaren Re: [Jack-Devel] Stopping jack from callback
Awesome, looks like it works, thanks Harry!

Note that you are violating threading rules by writing to a variable in the
> JACK callback, while reading the variable in main().
> You must use a ringbuffer / other thread-safe structure for exchanging
> data between threads.
>

Interesting. Is it a problem if I don't write to them anywhere except in
the callback? And, to be able to use "client" in the callback, I have to
make it global, right? That's what I've done just now.
PrevNext  Index

1376570481.14842_0.ltw:2,a <CAMeZe4FM-Hqf=h4DZCCdyOgKXMiAV_gf+tnk0O0TRUr6HEm3Vw at mail dot gmail dot com>