SUMMARY:  INNER | FIELD | CONSTR | METHOD | FRIEND DETAIL:  FIELD | CONSTR | METHOD | FRIEND


Platform::Thread
Class ILockable

NonCopyableType
   |
   +-ILockable

Implemented in:
Platform.Thread.ILockable.h
Direct Known Subclasses:
Mutex

abstract class ILockable:
private NonCopyableType

Defines an interface to be implemented by synchronization types with acquire-release semantics.

Constructor Summarycollapse
~ILockable() = 0
          Destructor.

Method Summarycollapse
Void acquire() = 0
          An operation to acquire a mutex.
Void acquire(Int spinCount) = 0
          An operation to acquire a mutex with the specified number of retries.
Void release() = 0
          Release operation.
Bool tryAcquire() = 0
          An operation to try acquiring a mutex.
Bool tryAcquire(Int spinCount) = 0
          An operation to try acquiring a mutex with the specified number of retries.

 

Constructor Detail

~ILockable[abstract, inline]

~ILockable() = 0

Destructor.

 

Method Detail

acquire[abstract, nothrow]

Void acquire() = 0

An operation to acquire a mutex.


acquire[abstract, nothrow]

Void acquire(Int spinCount) = 0

An operation to acquire a mutex with the specified number of retries.

Parameters:
spinCount - the number of retries

release[abstract, nothrow]

Void release() = 0

Release operation.


tryAcquire[abstract, nothrow]

Bool tryAcquire() = 0

An operation to try acquiring a mutex.

Returns:
True if the operation was successful, False otherwise

tryAcquire[abstract, nothrow]

Bool tryAcquire(Int spinCount) = 0

An operation to try acquiring a mutex with the specified number of retries.

Parameters:
spinCount - the number of retries
Returns:
True if the operation was successful, False otherwise


SUMMARY:  INNER | FIELD | CONSTR | METHOD | FRIEND DETAIL:  FIELD | CONSTR | METHOD | FRIEND