• 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
are nsstrings internally locked?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

are nsstrings internally locked?


  • Subject: are nsstrings internally locked?
  • From: Philip George <email@hidden>
  • Date: Tue, 22 Jul 2003 18:40:19 -0500

I'm doing a ton of nslocking on multiple threads for fear of caching a
partial nsmutablestring from one thread while another was trying to modify
it. Should I be worried about this? Are nsstring/nsmutablestring objects
locked internally? I have yet to actually SEE with my own two eyes an
NSMutableString get interrupted by another thread while being modified with
the setString: method, but that's no proof that it couldn't happen.

Anyone know for sure?

I'd love to not have to write all this extra locking code if it were
possible. :)

Thanks.

- Philip
_______________________________________________
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: are nsstrings internally locked? (nsmutablestrings actually)
      • From: Philip George <email@hidden>
    • Re: are nsstrings internally locked?
      • From: Thomas Harrington <email@hidden>
  • Prev by Date: Re: Button IB action on rename
  • Next by Date: Re: flummoxed by math failure
  • Previous by thread: Re: flummoxed by math failure
  • Next by thread: Re: are nsstrings internally locked?
  • Index(es):
    • Date
    • Thread