Page 1 of 1

Start Thread at specific Time ?

Posted: Tue Jun 21, 2022 7:33 am
by AUGE_OHR
hi,

i can start a Thread using

Code: Select all

   hb_threadStart( HB_THREAD_INHERIT_PUBLIC, @Wait4Action() )
now i like to "to Start" it "later" e.g. SECONDS() + 1 Min
how can i do it under harbour / HMG :idea:

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 )