• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Question about Threading
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Question about Threading (From: Michael Becker <email@hidden>)

  • Prev by Date: Cocoa and flash
  • Next by Date: Core data memory leak?
  • Previous by thread: Re: Question about Threading
  • Next by thread: Re: Question about Threading
  • Index(es):
    • Date
    • Thread