Threading on Linux

Miscellaneous Forums/Linux Discussion/Threading on Linux

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

Using the code below all it does on mine (Windows) is call the function at the "CreateThread(TestThread)" line and then carry on. Looks like its still in the same thread.

SuperStrict
Import btbn.thread

Global Done%=0

CreateThread(TestThread)

While Not Done
	Print "Running..."
	Delay 500
Wend
End


Function TestThread()
	Print "Thread begin"
	Delay 5000
	Print "Thread end"
	
	Done=1
End Function


Output:
Building untitled1
Compiling:untitled1.bmx
flat assembler  version 1.64
3 passes, 3782 bytes.
Linking:untitled1.debug.exe
Executing:untitled1.debug.exe
Thread begin
Thread end

Process complete