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

Specialization of the TemplatedLock class. More...

#include <Lock.h>

Inheritance diagram for Ocean::TemplatedLock< false >:

Public Member Functions

 TemplatedLock ()=default
 Creates a new lock object.
Public Member Functions inherited from Ocean::Lock
 Lock ()
 Creates a new lock object.
 ~Lock ()
 Destructs a lock object.
void lock ()
 Locks the critical section.
void unlock ()
 Unlocks the critical section.
bool isLocked ()
 Returns whether this critical section is locked by another thread.

Protected Member Functions

 TemplatedLock (const TemplatedLock &lock)=delete
 Disabled copy constructor.
TemplatedLock & operator= (const TemplatedLock &lock)=delete
 Disabled assign operator.
Protected Member Functions inherited from Ocean::Lock
 Lock (const Lock &lock)=delete
 Disabled copy constructor.
Lock & operator= (const Lock &lock)=delete
 Disabled assign operator.

Additional Inherited Members

Protected Attributes inherited from Ocean::Lock
CRITICAL_SECTION criticalSection_
 Critical section object of windows.
pthread_mutex_t mutex_
 Pthread mutex object.

Detailed Description

Specialization of the TemplatedLock class.

This class does nothing.

Constructor & Destructor Documentation

◆ TemplatedLock() [1/2]

Ocean::TemplatedLock< false >::TemplatedLock ( )
default

Creates a new lock object.

◆ TemplatedLock() [2/2]

Ocean::TemplatedLock< false >::TemplatedLock ( const TemplatedLock< false > & lock)
protecteddelete

Disabled copy constructor.

Parameters
lockThe lock object to be copied

Member Function Documentation

◆ operator=()

TemplatedLock & Ocean::TemplatedLock< false >::operator= ( const TemplatedLock< false > & lock)
protecteddelete

Disabled assign operator.

Parameters
lockThe lock object to be assigned
Returns
Reference to this object

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