On Tuesday 18 July 2017 15:15:01 Fred van Stappen wrote:
> >An example is here:
> > https://gitlab.com/mseide-msegui/mseuniverse/tree/master/samples/thread/c
> >lasswiththread
> Re-re hello Martin.
> Aaargh, you make me full of doubt.
> If I understand ok, for you, uos_play() must be the creator of the thread ?
It can if you like the idea of the thread(s) as standard sub-object(s) of a 
sound class. But doing it in FPC-way as tmsethread descendant is OK too.

> But, would it not be faster to create the thread paused before and at
> os_play() only resume the thread (like uos does) ?
If that time matters waiting on a semaphore in the worker thread probably 
provides the least delay, yes.


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

Reply via email to