TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Peter Fitzsimmons
from: David Muir
date: 1996-02-15 13:31:34
subject: Re: async timer thread

-=> Quoting Peter Fitzsimmons to David Muir <=-

 PF> What you want to do would be much easier with DosSleep.

 PF> for(i=0; i<60; i++)
 PF> DosSleep(1000);

    This would be acceptable if it there weren't other threads involved. but 
with numerous threads running, I fear there woud be too much lag in returning 
to this thread for the timing I want.

 PF> This all be "about" 60 seconds.  If you need more precision,  use
 PF> DosStartTimer(),  which does contain a 32bit sample in the online

    I had a look at this but I have the same problem (error 323 invalid 
semaphore handle). Using what function would I asign a semaphore for use by 
this call? (sorry I'm not using "C" and don't have the sample code you 
mentioned above).

 PF> ref,and/or use DosSleep() and DosQuerySysInfo(QSV_MS_COUNT ..) in
 PF> conjunction: 

    I'll see if this does the trick. (assuming I can port it to VP ). 
Thanks for your help Peter.

Dave...

~~~ TGWave v1.12+
--- GEcho 1.11+
* Origin: fks Online! * Ontario, Canada * (905)820-7273 * (1:259/423)
SEEN-BY: 50/99 78/0 270/101 620/243 711/401 409 410 413 430 808 809 934 955
SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809
@PATH: 259/423 400 99 250/99 3615/50 396/1 270/101 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.