• 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: NSRecursiveLock.lock() causing deadlock??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSRecursiveLock.lock() causing deadlock??


  • Subject: Re: NSRecursiveLock.lock() causing deadlock??
  • From: Dov Rosenberg <email@hidden>
  • Date: Thu, 28 Aug 2008 10:05:44 -0400
  • Thread-topic: NSRecursiveLock.lock() causing deadlock??

Title: Re: NSRecursiveLock.lock() causing deadlock??
Responding to a notification is much safer. The EOF stack is pretty complex you never know what it might need to do. With the notification based approach if something occurs your code will be more robust.

Dov Rosenberg


On 8/28/08 9:51 AM, "Jonathan Ricker" <email@hidden> wrote:


On Aug 28, 2008, at 8:25 AM, Jean-François Veillette wrote:

If by "replace the connection dictionary at startup" you mean in 'Application' or something like that, then yes this will cause problem.  I've seen some methods in EOUtilities reloading model, and thus reloading the connection dictionnary.  You should not replace it at startup but at every model load (via notification, as what's being done in Wonder for example).

Oh... I set connection dictionary stuff at the end of my App constructors.  What kind of problems could this cause (when would a model be reloaded?).  I am unaware of ever having problems because of this.  Is it critical I look into fixing this?

Thanks,

Jonathan


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSRecursiveLock.lock() causing deadlock??
      • From: Travis Britt <email@hidden>
References: 
 >Re: NSRecursiveLock.lock() causing deadlock?? (From: Jonathan Ricker <email@hidden>)

  • Prev by Date: Re: NSRecursiveLock.lock() causing deadlock??
  • Next by Date: Re: Automatic data generation
  • Previous by thread: Re: NSRecursiveLock.lock() causing deadlock??
  • Next by thread: Re: NSRecursiveLock.lock() causing deadlock??
  • Index(es):
    • Date
    • Thread