• 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: Problem killing my threads :)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem killing my threads :)


  • Subject: Re: Problem killing my threads :)
  • From: email@hidden
  • Date: Mon, 23 Sep 2002 16:58:37 +0200 (MEST)

En riponse ` Sherm Pendley <email@hidden>:

> You may take a minor performance hit, if the "worker" thread checks for
> the "threadShouldTerminate" variable with every iteration through a
> loop - especially if it first obtains a lock on it, which it probably
> should.

No, a lock is not required here since you just have a write on one side and a
read on another one. Both operations will be atomic.

--
Guillaume Outters
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Problem killing my threads :)
      • From: Aram Greenman <email@hidden>
References: 
 >Re: Problem killing my threads :) (From: Sherm Pendley <email@hidden>)

  • Prev by Date: Re: NSMutableNumber?
  • Next by Date: Re: Licences 101 - Copy Protection for Newbies
  • Previous by thread: Re: Problem killing my threads :)
  • Next by thread: Re: Problem killing my threads :)
  • Index(es):
    • Date
    • Thread