How can I stop running loop?
How can I stop running loop?
- Subject: How can I stop running loop?
- From: Mai Bui <email@hidden>
- Date: Tue, 23 Nov 2004 13:48:38 -0800
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@hidden
(858)534-4733
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden