Ocean
Loading...
Searching...
No Matches
Ocean::TemplatedScopedLock< false > Class Reference

Specialization of the TemplatedScopedLock class. More...

#include <Lock.h>

Inheritance diagram for Ocean::TemplatedScopedLock< false >:

Public Member Functions

 TemplatedScopedLock (Lock &lock)
 Creates a new scoped lock object by a given lock object.
 TemplatedScopedLock (TemplatedLock< false > &lock)
 Creates a new scoped lock object by a given lock object.
 ~TemplatedScopedLock ()
 Destructs a scoped lock and unlocks the internal lock object.

Protected Member Functions

TemplatedScopedLock & operator= (const TemplatedScopedLock< tActive > &object)=delete
 Disabled accessible assigns operator.

Protected Attributes

Lock & lock_
 Lock object which is locked during the existence of this scoped lock object.

Detailed Description

Specialization of the TemplatedScopedLock class.

This class does nothing.

Constructor & Destructor Documentation

◆ TemplatedScopedLock() [1/2]

Ocean::TemplatedScopedLock< false >::TemplatedScopedLock ( Lock & lock)
inlineexplicit

Creates a new scoped lock object by a given lock object.

Parameters
lockThe lock object used for locking

◆ TemplatedScopedLock() [2/2]

Ocean::TemplatedScopedLock< false >::TemplatedScopedLock ( TemplatedLock< false > & lock)
inlineexplicit

Creates a new scoped lock object by a given lock object.

Parameters
lockThe lock object used for locking

◆ ~TemplatedScopedLock()

Destructs a scoped lock and unlocks the internal lock object.

Member Function Documentation

◆ operator=()

TemplatedScopedLock & Ocean::TemplatedScopedLock< tActive >::operator= ( const TemplatedScopedLock< tActive > & object)
protecteddelete

Disabled accessible assigns operator.

Parameters
objectThe right object
Returns
Reference to this object

Field Documentation

◆ lock_

Lock& Ocean::TemplatedScopedLock< tActive >::lock_
protected

Lock object which is locked during the existence of this scoped lock object.


The documentation for this class was generated from the following file: