On 27.07.2017 22:23, Fred van Stappen wrote:
> Do you wait on the main thread in worker thread in some way or another?

Huh, maybe... (but could you give some code of what you propose so I can check it ?)
IMHO, "waiting" in the main thread is "forbidden".

So the Audio Thread should post an event (I in Delphi and Lazarus use TThread.Queue for such) and the main thread should react in the event handler. E.g. do a property "On...." in your outer class, if is not handled completely in the outer class itself, but the user of same is to define the code to be run in the action).

-Michael
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to