TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Alan Clifford
from: Phil Crown
date: 1996-03-21 10:49:36
subject: Threads

-=> Quoting Alan Clifford to All <=- 

 AC> time.  What this is leading up to is reading from the serial port into
 AC> a buffer in one thread and taking the character out in another - is
 AC> this the right way to go?  I have some example code where the author
 AC> uses a DosEnterCritSec in the input thread but nothing in the output
 AC> thread.  Isn't that a bit dangerous?

Check out pmtermsr.lzh, by Peter Fitzsimmons, for a good example of
accessing the comport and fast scrolling in a PM window.  Its
multi-threaded and doesn't use DosEnterCritSec.

10-13-95   3:23a     29332           0  pmtermsr.lzh

Phil
Fido:  1:124/8014.1 | Internet:  phil.crown{at}bluecafe.com


--- Blue Wave/OS2 v2.30
* Origin: * MacSavvy OS/2 BBS * Dallas, Texas * 214-250-4479 * (1:124/1208)
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: 124/1208 1 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™.