Re: EOEditingContext.isLocked()
Re: EOEditingContext.isLocked()
- Subject: Re: EOEditingContext.isLocked()
- From: Chuck Hill <email@hidden>
- Date: Wed, 17 Sep 2003 09:18:07 -0700
And as it is implemented with NSRecusiveLock it is safe to lock it again if
you (the thread) already have it locked. So, if in doubt, lock. Just be
sure to unlock when you are finished.
Chuck
At 05:50 PM 17/09/2003 +0200, Anjo Krank wrote:
>Am Mittwoch, 17.09.03, um 17:44 Uhr (Europe/Berlin) schrieb Jonathan
>Rochkind:
>
>>> Are there any ways to check if a EOEditingContext is locked?
>
>This would not be very thread-safe, would it? Anyway, you could
>tryLock() and unlock() if that succeeds. So you at least know if
>another thread does not currently hold a lock.
>
>Cheers, Anjo
>_______________________________________________
>webobjects-dev mailing list | email@hidden
>Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
>Do not post admin requests to the list. They will be ignored.
>
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.