Re: linking the same static library into two places
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