Synchronized Editing Context for Locking/Unlocking
Synchronized Editing Context for Locking/Unlocking
- Subject: Synchronized Editing Context for Locking/Unlocking
- From: Farrukh Ijaz <email@hidden>
- Date: Fri, 3 Sep 2010 14:59:00 +0300
Hi,
What is the difference between the two? I noticed both work almost the same way.
Usage 1:
try {
editingContext().lock();
// Do your stuff
} finally {
editingContext().unlock();
}
Usage 2:
synchronized(editingContext()) {
// Do your stuff
}
Thanks,
Farrukh _______________________________________________
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