Re: Exiting NSThread
Re: Exiting NSThread
- Subject: Re: Exiting NSThread
- From: Ondra Cada <email@hidden>
- Date: Sat, 29 Sep 2001 23:06:30 +0200
Dustin,
>
>>>>> Dustin Mierau (DM) wrote at Sat, 29 Sep 2001 13:27:16 -0700:
DM> connect_to_host(IP,port);
DM>
DM> while(1)
DM> {
DM> read_data_for_a_long_long_long_time();
DM> }
DM>
DM> disconnect();
DM>
DM> If the thread is just cleaned up for me, how do I ever disconnect?
Connections are cleaned as well.
If you happen to use some resource which is *not* cleaned up (like, say, an
external file), you should clean it up in appWillTerminate: (or some
appropriate notification observer).
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc