threads in max?

BlitzMax Forums/BlitzMax Programming/threads in max?

Paul "Taiphoz"(Posted 2009) [#1]
must have been an update i missed.

dont suppose there is any 1,2,3 step code to demo the syntax and use of threads in max?

dont have access to my max install atm to check the manual.


GaryV(Posted 2009) [#2]
I would suggest looking at the numerous threads on the forums discussing threads in Max. There have been several over the many, many months since threads were added.


BlitzSupport(Posted 2009) [#3]
Just launch the IDE and click on Samples -> Threads in the listview on the right.


GaryV(Posted 2009) [#4]
Just launch the IDE and click on Samples -> Threads in the listview on the right.

Did you read his last sentence? *big grin*


N(Posted 2009) [#5]
Well, this is how you create threads.

Strict

Function ThreadFn:Object(data:Object)
	Print data.ToString()
End Function

TThread.Create(ThreadFn, "Some data or whatever as long as it's an object")



BlitzSupport(Posted 2009) [#6]

Did you read his last sentence? *big grin*



Ah...


markcw(Posted 2009) [#7]
Threading was added to Max in v1.32. They haven't been added to the online manual or wikibook yet though. Here's some useful links.

> BlitzMax V132 for Windows and MacIntel now up!
> An overview of the experimental thread module. - tutorial
> Blitzmax threading examples thread
> Threads - Same resource

I suppose it won't hurt to repost the docs from modules/system/threads here. See below.


markcw(Posted 2009) [#8]
Removed. :P

Post was doc for System/Threads but I added a wikibook page instead so there's no need for it here too.


N(Posted 2009) [#9]
That's cheating. >_>


markcw(Posted 2009) [#10]
Would it be cheating if I just linked to the wikibook page instead, like this?
http://en.wikibooks.org/wiki/BlitzMax/Modules/Brl/Threads


N(Posted 2009) [#11]
Sure, let's make that cheating too.


markcw(Posted 2009) [#12]
Is this some kind of exam?


N(Posted 2009) [#13]
Yes.


markcw(Posted 2009) [#14]
Ok.