Public Member Functions | Private Attributes
icl_core::thread::ScopedSpinLock Class Reference

#include <ScopedSpinLock.h>

Inheritance diagram for icl_core::thread::ScopedSpinLock:
Inheritance graph
[legend]

List of all members.

Public Member Functions

bool isLocked () const
 operator bool () const
 Implicit conversion to bool (always true).
 ScopedSpinLock (SpinLock &spinlock)
 ~ScopedSpinLock ()
 Unlocks the spinlock.

Private Attributes

SpinLockm_spinlock

Detailed Description

Definition at line 31 of file ScopedSpinLock.h.


Constructor & Destructor Documentation

icl_core::thread::ScopedSpinLock::ScopedSpinLock ( SpinLock spinlock) [inline, explicit]

Locks the spinlock.

Parameters:
spinlockThe spinlock to use.

Definition at line 37 of file ScopedSpinLock.h.

Unlocks the spinlock.

Definition at line 44 of file ScopedSpinLock.h.


Member Function Documentation

Check if the spinlock has been successfully locked (always true since this class guarantees that the lock is held).

Definition at line 52 of file ScopedSpinLock.h.

icl_core::thread::ScopedSpinLock::operator bool ( ) const [inline]

Implicit conversion to bool (always true).

Definition at line 55 of file ScopedSpinLock.h.


Member Data Documentation

Definition at line 58 of file ScopedSpinLock.h.


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


fzi_icl_core
Author(s):
autogenerated on Thu Jun 6 2019 20:22:27