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.
Output:
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