TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Phil Crown
from: James R. Cook
date: 1996-12-31 02:21:30
subject: DosRead blocking

JRC> Isn't DosRead supposed to block if no bytes are available to be read?

 JRC> I'm playing with serial I/O threads and if DosRead doesn't ever block

 JRC> on a read from the comm port, there's no reason for the overhead of a

 JRC> thread, mutex semaphore and all that other garbage.  Thanks!



 PC> Yes, DosRead will block, but you have to tell the com port which mode

 PC> to use.



Ach.  You can do that on ports that are already open?  i.e. a little shim

that sits between a BBS and it's mailer?



={) James (}=



--- Blue Wave/DOS v2.30

* Origin: COMM Port OS/2 juge.com 204.89.247.1 (281) 980-9671 (1:106/2000)
SEEN-BY: 10/1650 50/99 54/99 270/101 104 280/1 396/1 620/243 625/160 640/201
SEEN-BY: 640/203 217 222 238 254 257 299 309 370 386 452 531 812 820 838 895
SEEN-BY: 690/660 711/409 410 413 430 808 809 934 955 712/311 407 505 506 517
SEEN-BY: 712/623 624 704 824 841 713/317 800/1 3615/50
@PATH: 106/2000 396/1 270/101 640/201 712/624 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™.