<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>ALLEGRO_THREAD stacksize</title>
		<link>http://www.allegro.cc/forums/view/617720</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Thu, 07 Feb 2019 14:41:09 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Is it possible to set the stack size of an ALLEGRO_THREAD?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Aldrik)</author>
		<pubDate>Mon, 28 Jan 2019 22:00:49 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I don&#39;t know what you mean. What is the stack size? You mean the heap vs stack stack?</p><p>You can&#39;t make an ALLEGRO_THREAD on the stack. It&#39;s an opaque data structure. You can only create and destroy them using al_create_thread and al_destroy_thread.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Tue, 29 Jan 2019 03:09:25 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I assume Aldrik means - is it possible to set the amount of memory allocated to a new thread&#39;s stack when it&#39;s created? (each thread has its own stack for subroutine returns and local variables, obvs)<br />This is possible with the underlying thread libraries (see <a href="http://man7.org/linux/man-pages/man3/pthread_attr_setstacksize.3.html">http://man7.org/linux/man-pages/man3/pthread_attr_setstacksize.3.html</a> and <a href="https://docs.microsoft.com/en-gb/windows/desktop/ProcThread/thread-stack-size">https://docs.microsoft.com/en-gb/windows/desktop/ProcThread/thread-stack-size</a> for example) but AFAIK not exposed to the Allegro API.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Peter Hull)</author>
		<pubDate>Tue, 29 Jan 2019 16:49:08 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Sounds like a reasonable addition, pull requests welcome <img src="http://www.allegro.cc/forums/smileys/cheesy.gif" alt=":D" />.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (SiegeLord)</author>
		<pubDate>Tue, 29 Jan 2019 22:09:54 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>SiegeLord, while you&#39;re here, what do you think of <a href="https://www.allegro.cc/forums/thread/617697">https://www.allegro.cc/forums/thread/617697</a> ?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Peter Hull)</author>
		<pubDate>Wed, 30 Jan 2019 00:07:20 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/617720/1041066#target">Peter Hull</a> said:</div><div class="quote"><p> SiegeLord, while you&#39;re here, what do you think of <a href="https://www.allegro.cc/forums/thread/617697">https://www.allegro.cc/forums/thread/617697</a> ? 
</p></div></div><p>We should be using UNICODE for things. We already do for most things, but somehow not joysticks. <a href="https://github.com/liballeg/allegro5/issues/397">https://github.com/liballeg/allegro5/issues/397</a> is an issue that applies to this, fwiw.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (SiegeLord)</author>
		<pubDate>Wed, 30 Jan 2019 07:55:07 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I forked the allegro5 repo and am working on adding this feature. however, when I try to test it in a test project al_init fails (I think because of different versions?). Can anyone help me with this? I tried defining ALLEGRO_UNSTABLE in the test project but this didn&#39;t change anything.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Aldrik)</author>
		<pubDate>Thu, 31 Jan 2019 03:05:34 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Aldrik,</p><p>When al_init fails, it&#39;s usually because the runtime is not the same version as the version used to compile with. So you may have old DLLs somewhere.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Thu, 31 Jan 2019 11:40:02 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I have made a pull request regarding this issue. This is my first ever contribution to an open source project so feedback is appreciated.<br /><a href="https://github.com/liballeg/allegro5/pull/992">https://github.com/liballeg/allegro5/pull/992</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Aldrik)</author>
		<pubDate>Thu, 31 Jan 2019 20:38:40 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I hesitate to say this but that &#39;pattern&#39; of having an extended creation function ( <span class="source-code">al_create_thread_with_stacksize</span> ) to go alongside the standard one ( <span class="source-code"><a href="http://www.allegro.cc/manual/al_create_thread"><span class="a">al_create_thread</span></a></span> ) is not consistent with other Allegro functions.</p><p>But the alternative is to follow displays and bitmaps, and have <span class="source-code">al_set_new_thread_option</span> - which is more cumbersome! (given that there aren&#39;t many options available for creating threads beyond stack size and priority)</p><p>Code itself looks OK on first glance.</p><p>[edit] Hopefully Siegelord can comment.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Peter Hull)</author>
		<pubDate>Sat, 02 Feb 2019 21:20:15 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I was set to work on it, it was for FileSystem as I remember it but I couldn&#39;t wrap my had around Win32 API. I&#39;m still learning it so I can contribute.</p><p>Luck my liver, cause I have to digest it!
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Doctor Cop)</author>
		<pubDate>Thu, 07 Feb 2019 14:41:09 +0000</pubDate>
	</item>
</rss>
