TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Mike Bilow
from: David Muir
date: 1996-02-19 07:04:18
subject: Re: async timer thread

-=> Quoting Mike Bilow to David Muir <=-

    boy this is getting fun .

 MB> I think you should use semaphores to start the timing sequence, rather
 MB> than loop on a check to see if a variable is zero or not.  This is not
 MB> really your question, however. 

    I'm open to suggestions. Care to elaborate?

 MB> Of course a thread can be blocked by a semaphore.  However, the exact
 MB> way in which semaphores are handled has changed from the 16-bit API to
 MB> the 32-bit API, and I have no idea how to advise you if you are
 MB> programming in Pascal. 

    Just forget that I'm using Pascal and give me a "C" sample
using the 32 
bit API and i'll be happy . Right now, I'm more ticked at not being able to 
use any timer funcions due to it not accpting "any" semaphore I create.

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™.