Start Thread at specific Time ?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 2117
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Start Thread at specific Time ?

Post 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 )
have fun
Jimmy
Post Reply