<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: task and immediate</title>
		<atom:link href="http://cycling74.com/forums/topic/task-and-immediate/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/task-and-immediate/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 03:54:11 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/task-and-immediate/#post-26245</guid>
					<title><![CDATA[task and immediate]]></title>
					<link>http://cycling74.com/forums/topic/task-and-immediate/#post-26245</link>
					<pubDate>Thu, 01 Jun 2006 14:45:13 +0000</pubDate>
					<dc:creator>Emmanuel Jourdan</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>Is there a way to make a task regular? According to the  <br />
documentation, you just have to set the immediate property of the  <br />
function to 1 so the Task will be executed in the high priority  <br />
thread, but with the example bellow, it reports 1 instead of 0.<br />
If I call the Task from a high priority message, it doesn&#8217;t change  <br />
anything. Am I forgetting something?</p>
<p>ej</p>
<p>PS: this is on a mac, with latest versions of everything&#8230;</p>
<p>#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P window linecount 1;<br />
#P comment 343 212 110 196617 < - call in low priority;<br />
#P button 306 164 15 0;<br />
#P newex 306 187 50 196617 del 1000;<br />
#P message 306 210 33 196617 start;<br />
#P message 320 231 29 196617 stop;<br />
#P newex 306 254 76 196617 js highpriority;<br />
#P comment 328 165 110 196617 < - call in high priority;<br />
#P connect 5 0 4 0;<br />
#P connect 4 0 3 0;<br />
#P connect 3 0 1 0;<br />
#P connect 2 0 1 0;<br />
#P window clipboard copycount 7;</p>
<p>
&#8212;&#8212;&#8212; save as highpriority.js &#8212;&#8212;&#8212;<br />
var myTask = new Task(click, this);<br />
myTask.interval = 100;</p>
<p>function start()<br />
{<br />
	post(&#8220;start is in the thread&#8221;, max.mainthread, &#8220;n&#8221;);<br />
	myTask.repeat();<br />
}<br />
start.immediate = 1;</p>
<p>function stop()<br />
{<br />
	myTask.cancel();<br />
}</p>
<p>function click()<br />
{<br />
	post(&#8220;task is in the thread&#8221;, max.mainthread, &#8220;n&#8221;);<br />
	outlet(0, &#8220;bang&#8221;);<br />
}<br />
click.immediate = 1;</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/task-and-immediate/#post-78124</guid>
					<title><![CDATA[Re: task and immediate]]></title>
					<link>http://cycling74.com/forums/topic/task-and-immediate/#post-78124</link>
					<pubDate>Thu, 01 Jun 2006 18:53:24 +0000</pubDate>
					<dc:creator>ericsays</dc:creator>

					<description>
						<![CDATA[
						<p>Warning for Windows users:</p>
<p>This patch crashes Max when overdrive is on, as discussed in a recent thread.</p>
<p>Eric</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

