• 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: Jean-François Veillette <email@hidden>
  • Date: Thu, 28 Aug 2008 14:21:03 -0400


Le 08-08-28 à 09:51, Jonathan Ricker a écrit :


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?

Yes, you should most likely fix it soon.
This is how we did 4 years ago as well, but one day we realized that one fetch was going on the dev database (which was an old replica of the production database).
I do not remember the details, but it was a method in EOUtilities (like objectsForEntityName or something) that caused us to use the notification method instead.

- jfv


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

References: 
 >Re: NSRecursiveLock.lock() causing deadlock?? (From: Dov Rosenberg <email@hidden>)
 >Re: NSRecursiveLock.lock() causing deadlock?? (From: Jean-François Veillette <email@hidden>)
 >Re: NSRecursiveLock.lock() causing deadlock?? (From: Jonathan Ricker <email@hidden>)

  • Prev by Date: Re: javaeoutil Notes?
  • Next by Date: Re: Exception handling
  • Previous by thread: Re: NSRecursiveLock.lock() causing deadlock??
  • Next by thread: Re: NSRecursiveLock.lock() causing deadlock??
  • Index(es):
    • Date
    • Thread