org.omg.CosConcurrencyControl
Interface LockSetOperations

All Known Subinterfaces:
LockSet
All Known Implementing Classes:
LockSetPOA

public interface LockSetOperations

The LockSet interface provides operations to aquire and release locks on behalf of the calling thread or transaction


Method Summary
 void change_mode(lock_mode held_mode, lock_mode new_mode)
          Changes the mode of a single lock
 void lock(lock_mode mode)
          Acquires a lock on the specified lock set in the specified mode
 boolean try_lock(lock_mode mode)
          Attempts to acquire a lock on the specified lock set.
 void unlock(lock_mode mode)
          Drops a single lock on the specified lock set in the specified mode
 

Method Detail

lock

public void lock(lock_mode mode)
Acquires a lock on the specified lock set in the specified mode

try_lock

public boolean try_lock(lock_mode mode)
Attempts to acquire a lock on the specified lock set.

unlock

public void unlock(lock_mode mode)
            throws LockNotHeld
Drops a single lock on the specified lock set in the specified mode

change_mode

public void change_mode(lock_mode held_mode,
                        lock_mode new_mode)
                 throws LockNotHeld
Changes the mode of a single lock