<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Allegro 5 thread on other languages</title>
		<link>http://www.allegro.cc/forums/view/616349</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sun, 19 Jun 2016 22:52:09 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>This is a quite simple question.</p><p>Allegro includes a cross-platform threading interface.  Object Pascal defines it&#39;s own cross-platform threading interface too, so I wonder if it would be any problem by using it.  As I&#39;ve seen at Free Pascal sources it uses Windows threads on Windows and pthreads on POSIX as Allegro.  Anyway, is there anything I should care about using threads with Allegro?</p><p>Also, what about other languages?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Niunio)</author>
		<pubDate>Fri, 17 Jun 2016 23:15:29 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;ve started developing jalleg, the Java binding for Allegro 5.2 and I&#39;ve been able to successfully use Java&#39;s native threads on Allegro. By that I mean I&#39;ve created other threads in Java and called Allegro routines and not seen any problems, but I wouldn&#39;t call that extensive testing.</p><p>As far as I know Allegro&#39;s thread interaction is about thread locals. As long as Allegro&#39;s implementation is associated with the OS native threads, then it should not matter what API you use to create threads.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (gillius)</author>
		<pubDate>Sat, 18 Jun 2016 00:27:19 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Yeah, using your language&#39;s threads should work fine.</p><p>The threading API is one of a few bits of Allegro that were necessary internally, but were exposed externally because they seemed useful, even if you typically might not use them in a typical program/game.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (SiegeLord)</author>
		<pubDate>Sat, 18 Jun 2016 09:32:26 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Good to know. Thanks. <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /></p><p>Anyway, I was trying to understand how does it work, to translate the examples correctly, and I found it a bit confusing.  ex_native_filechooser creates a lot of threads, and I just don&#39;t know why. <img src="http://www.allegro.cc/forums/smileys/huh.gif" alt="???" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Niunio)</author>
		<pubDate>Sun, 19 Jun 2016 14:04:21 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>The native file chooser is a special case - for some reason <span class="source-code"><a href="http://www.allegro.cc/manual/al_show_native_file_dialog"><span class="a">al_show_native_file_dialog</span></a></span> blocks the calling thread. So if you call it from the main thread you more or less kill your game (can&#39;t handle events or anything while the dialog shows). To avoid that the example calls the function from another thread.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Elias)</author>
		<pubDate>Sun, 19 Jun 2016 21:02:23 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I see. I should study it and find the way to port it to Pascal, as that dialog is quite useful.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Niunio)</author>
		<pubDate>Sun, 19 Jun 2016 22:52:09 +0000</pubDate>
	</item>
</rss>
