| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | semaphore |
Hello All!
a stupid question:
I don't want 2 copies of my program to run at the same time.
I use DosCreateMutEx to create a semaphore when starting the program, and
DosDeleteMutEx when I'm done. or do I ?. Should I use DosCreateMuxWaitSem
instead ?
My question is:
what is a good way to put so to speak copy 2 on hold until copy 1 is done ?
I have to check periodically for the semaphore, else just wait. When the
semaphore is gone, then I can safely resume. Is there a way to do this
without consuming any resources ? the doc talks about threads for the
muxwait, which is why I am not sure I can use it between 2 apps.
-= Francois =-
Thunus{at}Club.TeleMatique.org
http://www.innet.net/~pub00071
The worst thing about censorship is лллллллллл.
--- GoldED 2.50+
* Origin: Xara Sto Pragma ! Gasperich - Luxembourg -> (FidoNet 2:270/25.2)SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934 SEEN-BY: 711/955 712/407 515 517 628 713/888 800/1 @PATH: 270/25 170/400 396/1 270/101 712/515 711/808 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™.