Start Thread at specific Time ?
Posted: Tue Jun 21, 2022 7:33 am
hi,
i can start a Thread using
now i like to "to Start" it "later" e.g. SECONDS() + 1 Min
how can i do it under harbour / HMG
p.s. when work with "Starttime" how to "break" when not need any more
---
under Xbase++ i use :setStartTime() and :start()
i can start a Thread using
Code: Select all
hb_threadStart( HB_THREAD_INHERIT_PUBLIC, @Wait4Action() )how can i do it under harbour / HMG
p.s. when work with "Starttime" how to "break" when not need any more
---
under Xbase++ i use :setStartTime() and :start()
Code: Select all
oThread := Thread() :new()
oThread:setStartTime( nSECONDS )
oThread:start( { || Wait4Action() } )
// "cancel" Thread before Start
oThread:setInterval( NIL )