Skip navigation.
 
mlHow can I stop running loop?
FROM : Mai Bui
DATE : Tue Nov 23 22:48:38 2004

Hi,

I'm very new in cocoa and still learning it.  I would like to write
application which is run forever (to acquire some data) until the user
enter some key (i.e "Q") and application will stop.
I think about use multithread to do it: the first thread runs a
while(1) loop, the second one waits, checks and gets input from the
user to set the flag "Done" which is the  first thread can see it and
stop.  My logic is on the right track?  But .... I do not know how to
implement with the second thread.

Thanks for your ideas, your guide in advance.

Mai.


Mai Bui N.
MPL - SIO
<email_removed>
(858)534-4733

Related mailsAuthorDate
mlHow can I stop running loop? Mai Bui Nov 23, 22:48
mlRe: How can I stop running loop? John Stiles Nov 23, 22:52
mlRe: How can I stop running loop? Shawn Erickson Nov 23, 23:09
mlRe: How can I stop running loop? Mai Bui Dec 2, 05:48
mlRe: How can I stop running loop? Shawn Erickson Dec 2, 17:23