TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Neil Heller
from: andrew clarke
date: 2003-06-04 14:44:56
subject: Keyboard questions

Tue 2003-06-03 18:16, Neil Heller (1:106/2000) wrote to Jasen Betts:

 NH> This is completely untested - I'm writing this in an NT session but
 NH> only  do pthreads in *nix.  I guess I'm too lazy to keep rebooting.

You should probably check out Cygwin.  With it you can compile code that
uses pthreads, among other things.

 NH> This code will check every 5 seconds to see if the user has typed
 NH> "foo"  anywhere in his wise saying.  Then all the threads will be
 NH> terminated  and the program will end.

There are some syntax problems with your code, and also a bug where if
writer_func() sets the value of "there" to 2 it can clobber that
value before nanosleep() has completed.

-- mail{at}ozzmosis.com

--- timEd/Cygwin 1.11.b1
* Origin: Blizzard of Ozz, Mt Eliza, Victoria, Australia (3:633/267.1)
SEEN-BY: 633/267 270
@PATH: 633/267

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™.