optional parameter (flags) for CreateThread()
Posted: Sun Apr 16, 2006 2:11 am
In result of this thread (german forum) http://www.purebasic.fr/german/viewtopi ... 02&start=0 a optional parameter for CreateThread() to define the creationflags of the kernel32-proc createthread_() would be nice. Like the example in the german forum:
Code: Select all
thread = CreateThread(@a(),0,#CREATE_SUSPENDED) ;wait until ResumeThread
Delay(500)
ResumeThread(thread) ;start thread
Delay(500)