• 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: linking the same static library into two places
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: linking the same static library into two places


  • Subject: Re: linking the same static library into two places
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 07 Jul 2011 17:25:23 -0700

On Jul 7, 2011, at 4:25 PM, Greg Parker wrote:

> This is less safe than you might like. On iOS and 64-bit Mac, you may end up with both copies of the class in use simultaneously. That means two separate invocations of +initialize, two separate locks for @synchronized([MyClass class]), etc.

How’s that? I thought there would only ever be one instance of the class loaded at a time.

—Jens_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: linking the same static library into two places
      • From: Greg Parker <email@hidden>
References: 
 >linking the same static library into two places (From: Kenny Leung <email@hidden>)
 >Re: linking the same static library into two places (From: Jens Alfke <email@hidden>)
 >Re: linking the same static library into two places (From: Greg Parker <email@hidden>)

  • Prev by Date: Re: App Delegate Methods
  • Next by Date: Re: linking the same static library into two places
  • Previous by thread: Re: linking the same static library into two places
  • Next by thread: Re: linking the same static library into two places
  • Index(es):
    • Date
    • Thread