Page 1 of 1

CreateThread() optional flag

Posted: Thu Jul 03, 2008 4:59 pm
by nco2k
a flag to decide, whether or not the thread should be executed right away.

Code: Select all

Thread = CreateThread(@Proc(), 0, 1); flag=1 will pause the thread from the beginning
;...
;do stuff
;...
ResumeThread(Thread); now lets start that thread
and could you make the param value optional? most of the time we use zero anyway.

Code: Select all

CreateThread(@Proc(), Param=0, Flag=0)
c ya,
nco2k