| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Cset problem. |
RC> Also is there a list available of which RC> libraries/library functions RC> are multi-thread friendly? The docs that I've got RC> (the ones that come with Cset++ 2.1) don't seem to PF> *ALL* of the functions are multi-thread friendly, when PF> you compile/link with /Gm. OK, I'll keep that in mind. I have always used /Gm+, but I thought that some of the libraries weren't multi-threaded. PF> This does not prevent you from doing silly things PF> though. For example,calling getc() for the same stream PF> in different threads will work, but which thread each PF> piece of data goes to is anyone's guess. No, I have never done that. Why would anyone want to share a keyboard between threads? IMHO The only way to design an OS/2 application for interactive performance is to dedicate a single thread to reading from the keyboard and possibly parsing the input as well. Anyway doing that shouldn't cause an exception, which is what I was getting. PF> Calling getc() with different streams should work fine. PF> If you find that your program behaves better when you PF> replace one of the getc's with DosRead(), you have PF> probably prevented the error by changing the timing of PF> your program (a DosRead() of one byte is a LOT slower PF> than getc()). OK. Well currently I'm using the Kbd*() calls which work well.... Thanks for all the info, cya. --- Maximus/2 2.01wb* Origin: Multi - 61-3-739-7145 (3:633/363) SEEN-BY: 54/54 620/243 632/301 348 365 386 998 633/104 252 260 357 363 371 SEEN-BY: 633/373 634/384 635/210 502 503 636/100 638/100 640/820 690/660 SEEN-BY: 711/409 413 430 807 808 809 934 712/353 623 713/888 800/1 2442/0 @PATH: 633/363 260 371 635/503 632/348 711/409 54/54 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™.