Re: Question about Threading
Re: Question about Threading
- Subject: Re: Question about Threading
- From: Dominic Yu <email@hidden>
- Date: Mon, 8 Aug 2005 14:21:55 -0700
> variable to STOP the thread, how can I make sure that I wait until
use an NSLock. Also, check out the source for my program, which does
image loading similar to what you're describing:
http://blyt.net/phxslides/
in the main window's controller class, i use a lock to wait until
other threads have stopped before continuing (in the loadImages:
method, i think).
Also, I believe variables accessed from different threads should be
declared as volatile, though I'm not sure exactly what that does...
-Dominic
_______________________________________________
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