Re: Releasing static variable & concurrent data protection questions...
Re: Releasing static variable & concurrent data protection questions...
- Subject: Re: Releasing static variable & concurrent data protection questions...
- From: "Frederick C. Lee" <email@hidden>
- Date: Mon, 15 Nov 2010 13:16:11 -0800
Thanks for the warning!
Understood.
Ric.
On Nov 15, 2010, at 1:09 PM, Greg Parker wrote:
> On Nov 15, 2010, at 1:08 PM, Frederick C. Lee wrote:
>> I'll peek at OSAtomic.h
>>
>> I'm in a learning phase, so I'll expect to 'flutter about' before I can fly.
>
> In that case, do not peek at OSAtomic.h. Avoid OSAtomic.h until you understand the basics of coordinating access to shared data.
>
>
>> BTW: working with static variables - Is it possible to using 'static' within a 'task'; i.e., releasing it BEFORE the end of the application termination?
>
> No. Use an instance variable.
>
>
> --
> Greg Parker email@hidden Runtime Wrangler
>
>
_______________________________________________
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