| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: Queue question |
PM> I am writing a small utility that uses multilple threads. I have used PM> multiple queues so that each thread can send necessary information to PM> other threads. None of the queue write/reads uses an event semaphore. PM> However, while examining the possibility of using event semaphores I PM> noticed that the way the technical manual reads, if I use one event PM> semaphore for one queue, I MUST use the same semaphore for all other PM> queues. PM> Am I reading this correctly? I don't think so, for all DosReadQueue and DosPeekQueue requests to *one* queue you have to use the same event semaphore handle. The first time you use the 'hsem' parameter to DosReadQueue, this handle is remembered by the system and exactly this semaphore will get posted when something is written to this queue. cu/2 Roland ... I program like a MAN. I use COPY CON PROGRAM.EXE --- Blue Wave/Max v2.12 OS/2 [NR]* Origin: CCWN: Leistung ueberzeugt !!! (2:246/1401) SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407 SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809 @PATH: 246/1401 50 24/999 2/777 105/42 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™.