<?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: thread-safety</title>
		<atom:link href="http://cycling74.com/forums/topic/thread-safety/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/thread-safety/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 18:26:55 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/thread-safety/#post-50250</guid>
					<title><![CDATA[thread-safety]]></title>
					<link>http://cycling74.com/forums/topic/thread-safety/#post-50250</link>
					<pubDate>Tue, 11 May 2010 12:18:27 +0000</pubDate>
					<dc:creator>andrea agostini</dc:creator>

					<description>
						<![CDATA[
						<p>Hi.</p>
<p>Trying to understand more about potential thread-unsafeties, I have gone back to study the minimum source code in the SDK and my doubts have grown bigger.</p>
<p>Let&#8217;s assume that I have overdrive on. </p>
<p>minimum_list() is called in the main thread, with a list longer or shorter than x->m_count. minimum_resize() is called, x->m_args is freed.</p>
<p>Then minimum_list() is called in the high priority thread, with a list of x->m_count elements, and unfortunately the high priority thread interrupts the main thread right now, after the latter has freed x->m_args. Things are written in x->m_args+i, and we face the catastrophe!</p>
<p>&#8230; don&#8217;t we? what&#8217;s wrong? is it the example, or is it me? Shouldn&#8217;t there be a mutex or some other mechanism to protect the array? Or is this one of those common operations referred to in the &#8220;threading&#8221; section of the documentation? Or what else?</p>
<p>thanks for any enlightenment!<br />
aa</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/thread-safety/#post-180328</guid>
					<title><![CDATA[Re: thread-safety]]></title>
					<link>http://cycling74.com/forums/topic/thread-safety/#post-180328</link>
					<pubDate>Wed, 12 May 2010 01:40:45 +0000</pubDate>
					<dc:creator>Timothy Place</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks for catching this &#8212; you are correct that the object is not currently threadsafe.  We&#8217;ll fix this for a future release.</p>
<p>Cheers</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

