Ah thanks for pointing that out, Hans.<div><br></div><div>m_callbackscheduler() is soooo much more simple than m_pollingscheduler(), I&#39;m wondering what the performance differences are..</div><div><br></div><div>Cheers,</div>
<div>Rich<br><div><br><br><div class="gmail_quote">On Sun, Oct 9, 2011 at 4:26 PM, Hans-Christoph Steiner <span dir="ltr">&lt;<a href="mailto:hans@at.or.at">hans@at.or.at</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
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 &quot;use callbacks&quot;.  My guess is that will enable m_callbackscheduler().<br>

<br>
.hc<div><div></div><div class="h5"><br>
<br>
On Oct 8, 2011, at 11:39 PM, Rich E wrote:<br>
<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
Hi all,<br>
<br>
I&#39;ve been stepping through the pd source and trying to understand the scheduling system, would anyone who knows mind helping me to this effect?<br>
<br>
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?<br>

<br>
I&#39;m wondering if sched_tick() is ever called from a non-main thread.<br>
<br>
Cheers,<br>
Rich<br></div></div>
______________________________<u></u>_________________<br>
Pd-dev mailing list<br>
<a href="mailto:Pd-dev@iem.at" target="_blank">Pd-dev@iem.at</a><br>
<a href="http://lists.puredata.info/listinfo/pd-dev" target="_blank">http://lists.puredata.info/<u></u>listinfo/pd-dev</a><br>
</blockquote>
<br>
<br>
------------------------------<u></u>------------------------------<u></u>----------------<br>
<br>
&quot;A cellphone to me is just an opportunity to be irritated wherever you are.&quot; - Linus Torvalds<br>
<br>
</blockquote></div><br></div></div>