[PD-dev] Using PD funcs from inside a threaded external

Tim Blechmann tim at klingt.org
Thu Mar 19 00:44:31 CET 2009


>>> Afaik, this will do the rough equivalent of a [delay 0] across threads, so
>>> that your (Ben's) thread's execution is inserted between two t_clock
>>> events ([delay], [metro], etc.)
>> not really ... [delay 0] will schedule the outlet during the next dsp
>> tick in the pd thread ...
> 
> uh, i haven't read that part of the code in detail, but wouldn't that be 
> _before_ the next dsp tick instead? (I was likening sys_lock to the use of 
> [delay] in a single-threaded setting, I wasn't suggesting to use the real 
> [delay] in a multi-thread setting)

tick:
- timer callbacks
- signal processing

>> waiting for the interpreter lock requires the os to schedule the thread, 
>> the function and all triggered object functions, are called in the 
>> object thread ...
> 
> I was beginning to reply to this paragraph, but I realised that I don't 
> understand the grammar of it. Could you please rephrase?

|threaded object a|
|
|trivial object b|

thread of object a:
- call sys_lock(), blocking
- os wakes this thread
- call inlet handlers of object b
- ...

tim

-- 
tim at klingt.org
http://tim.klingt.org

I don't write music for sissy ears.
  Charles Ives

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20090319/db32f148/attachment.pgp>


More information about the Pd-dev mailing list