CreateThread() optional flag
Posted: Thu Jul 03, 2008 4:59 pm
a flag to decide, whether or not the thread should be executed right away.
and could you make the param value optional? most of the time we use zero anyway.
c ya,
nco2k
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
Code: Select all
CreateThread(@Proc(), Param=0, Flag=0)
nco2k