Class: TStandardLockRequest

Declaration: CcrmStandardLockRequest.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TLockRequest

Inherited By:

None.

Purpose:

Represents a lock request on a lockable object.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

None. TStandardLockRequest should not be overridden.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TStandardLockRequest::TStandardLockRequest

  1. TStandardLockRequest (TStandardTransaction & Trans, MLockable * Object, ELockType lt =kRead, ELockMode lm =kWait)
  2. TStandardLockRequest (TStandardTransaction & Trans, MLockable * ObjectAlias, unsigned long offset, ELockType lt =kRead, ELockMode lm =kWait)

Interface Category:

API.

Purpose:

  1. Constructor for an object lock request.
  2. Constructor for a partial lock request.

Calling Context:

  1. Called to acquire lock on the object.
  2. Called to acquire lock on a Record or Segment of an object.
  3. Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws TInvalidTransaction when the transaction in scope requests none compatible lock type (for example, Read transaction requesting WriteLock). Passes all other exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TStandardLockRequest::~TStandardLockRequest

~ TStandardLockRequest ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called to destroy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.