public void acquireExclusiveLockTillOperationComplete ( OAtomicOperation operation , String lockName ) { if ( operation . containsInLockedObjects ( lockName ) ) { return ; } lockManager . acquireLock ( lockName , OOneEntryPerKeyLockManager . LOCK . EXCLUSIVE ) ; operation . addLockedObject ( lockName ) ; }
Acquires exclusive lock with the given lock name in the given atomic operation .