| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Unnamed pipes |
Hallo Ruud!
28 December 1994 14:12, Ruud Senden schreef aan All:
RS > One of the pipes is used to send commands from the main thread to the
RS > other thread, the other one to send status information from the other
RS > thread to the main thread.
RS > This works allright, except for one thing. When I do a DosRead() when
RS > there is no command or status information on a pipe, the DosRead()-call
RS > blocks until something is written to the pipe.
RS > Since I also have to do other things in both threads, I don't want the
RS > DosRead()-call to block.
RS > Is it possible to do this, or is there a call to check whether there is
RS > some data waiting or not, so I can call DosRead() only when there is data
RS > waiting?
In de old 1.3 version there was a cal to do this. Since 2.0 IBM has deleted
this function, but you could use a separated thread to do a dosread with
timeout. Search for the program rcpopup.zip, this file contains a C-source
to do a async dosread.
Houdoe,
Ronnie
--- FMail 0.92
* Origin: Why are days only 24 hours long? (2:512/152.18)SEEN-BY: 12/2442 620/243 624/50 632/348 640/820 690/660 711/409 410 413 430 SEEN-BY: 711/807 808 809 934 942 949 712/353 515 713/888 800/1 7877/2809 @PATH: 512/152 0 2448/69 2426/2011 99 2030 270/101 396/1 3615/50 229/2 @PATH: 12/2442 711/409 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™.