[PD-dev] pd source - trying to understand m_mainloop() and sched_tick()

Rich E reakinator at gmail.com
Mon Oct 10 00:10:52 CEST 2011


Ah thanks for pointing that out, Hans.

m_callbackscheduler() is soooo much more simple than m_pollingscheduler(),
I'm wondering what the performance differences are..

Cheers,
Rich


On Sun, Oct 9, 2011 at 4:26 PM, Hans-Christoph Steiner <hans at at.or.at>wrote:

>
> I think that stuff is the polling versus callback scheduling when talking
> to the audio device.  If you look in the audio preferences, there is a check
> box that says "use callbacks".  My guess is that will enable
> m_callbackscheduler().
>
> .hc
>
>
> On Oct 8, 2011, at 11:39 PM, Rich E wrote:
>
>  Hi all,
>>
>> I've been stepping through the pd source and trying to understand the
>> scheduling system, would anyone who knows mind helping me to this effect?
>>
>> There are two options that m_mainloop() has for scheduling,
>> m_pollingscheduler() and m_callbackscheduler().  On OS X, I am only getting
>> a hit on m_pollingscheduler, since sched_useaudio = SCHED_AUDIO_POLL.  Does
>> sched_useaudio ever equal SCHED_AUDIO_CALLBACK, which would then cause
>> m_callbackscheduler() to be used instead?
>>
>> I'm wondering if sched_tick() is ever called from a non-main thread.
>>
>> Cheers,
>> Rich
>> ______________________________**_________________
>> Pd-dev mailing list
>> Pd-dev at iem.at
>> http://lists.puredata.info/**listinfo/pd-dev<http://lists.puredata.info/listinfo/pd-dev>
>>
>
>
> ------------------------------**------------------------------**
> ----------------
>
> "A cellphone to me is just an opportunity to be irritated wherever you
> are." - Linus Torvalds
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20111010/2271b384/attachment.htm>


More information about the Pd-dev mailing list