• 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: Q about locked ec
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Q about locked ec


  • Subject: Re: Q about locked ec
  • From: Jon Nolan <email@hidden>
  • Date: Wed, 17 Feb 2010 15:29:18 -0700
  • Organization: Loch Garman

Ricardo J. Parada wrote:
Hmm... I'm using background threads in my apps to do some processing. The thread creates is editing context for its own use. Something like this:

EOObjectStoreCoordinator parentObjectStore = new EOObjectStoreCoordinator();
editingContext = ERXEC.newEditingContext(parentObjectStore);


I pass GIDs to this background thread. But if I understand what you are saying, creating the editing context like this can still get me in trouble still.

Ricardo
Ricardo,

It might be useful to consider using ERXTimerTask or dive into its implementation for more info. I run all my background threads this way and I have zero lock issues.

I don't create my own OSC either for what that's worth.

Jon

_______________________________________________
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: 
 >Q about locked ec (From: Philippe Rabier <email@hidden>)
 >Re: Q about locked ec (From: Kieran Kelleher <email@hidden>)
 >Re: Q about locked ec (From: "Ricardo J. Parada" <email@hidden>)

  • Prev by Date: Re: Q about locked ec
  • Next by Date: Re: Q about locked ec
  • Previous by thread: Re: Q about locked ec
  • Next by thread: Re: Q about locked ec
  • Index(es):
    • Date
    • Thread