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
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 mails | Author | Date |
|---|---|---|
| Mai Bui | Nov 23, 22:48 | |
| John Stiles | Nov 23, 22:52 | |
| Shawn Erickson | Nov 23, 23:09 | |
| Mai Bui | Dec 2, 05:48 | |
| Shawn Erickson | Dec 2, 17:23 |






Cocoa mail archive

