• 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: WOWorkerThread deadlocks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOWorkerThread deadlocks


  • Subject: Re: WOWorkerThread deadlocks
  • From: Chuck Hill <email@hidden>
  • Date: Thu, 13 Sep 2012 11:06:55 -0700

Hi Susanne,


On 2012-09-13, at 8:57 AM, Susanne Schneider wrote:

> Hi all,
>
> please allow me to add one question regarding this interesting topic.
>
> Alexis Tual (my mail client has problem with correct quoting) has suggested for EOF background handling:
> <snip>
> ec.lock();
> try {
>   // huge loop to compute stats
>   for (i = 0; i < 1000000; i++) {
>        // doing stuff with ec...
>       // cycling the ec
>        if (i % 100 == 0) {
>           ec.unlock();
>           ec.dispose();
>           ec = newEditingContextForMyWork();
>           ec.lock();
>        }
>   }
> } finally {
>   ec.unlock();
> }
> </snip>
>
> Now my question: is it correct to dispose the ec after unlock or would it be better to do this beforehand, like:
>
> 	ec.dipsose();
> 	ec.unlock();

It is correct to unlock it before disposing it.

> If I turn on the ec-lock logging in my application, there are many remarks from the Finalizers like: "*** EOEditingContext: access with no lock: _eoForGID()!" Is this a real problem or can it be ignored?

I am not sure, can you send the full stack trace?


Chuck


--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/gvc/practical_webobjects









 _______________________________________________
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: WOWorkerThread deadlocks
      • From: Susanne Schneider <email@hidden>
References: 
 >Re: WOWorkerThread deadlocks (From: Susanne Schneider <email@hidden>)

  • Prev by Date: Re: Problems changing eomodel
  • Next by Date: Re: Problems changing eomodel
  • Previous by thread: Re: WOWorkerThread deadlocks
  • Next by thread: Re: WOWorkerThread deadlocks
  • Index(es):
    • Date
    • Thread