Home ⌂Doc Index ◂Up ▴
Intel(R) Threading Building Blocks Doxygen Documentation  version 4.2.3
tbb::interface7::internal::padded_mutex< Mutex, false >::scoped_lock Class Reference

Represents acquisition of a mutex. More...

#include <_mutex_padding.h>

Inheritance diagram for tbb::interface7::internal::padded_mutex< Mutex, false >::scoped_lock:
Collaboration diagram for tbb::interface7::internal::padded_mutex< Mutex, false >::scoped_lock:

Public Member Functions

 scoped_lock ()
 
 scoped_lock (padded_mutex &m)
 
 ~scoped_lock ()
 
void acquire (padded_mutex &m)
 
bool try_acquire (padded_mutex &m)
 
void release ()
 

Private Attributes

Mutex::scoped_lock my_scoped_lock
 

Additional Inherited Members

- Private Member Functions inherited from tbb::internal::no_copy
 no_copy (const no_copy &)=delete
 
 no_copy ()=default
 

Detailed Description

template<typename Mutex>
class tbb::interface7::internal::padded_mutex< Mutex, false >::scoped_lock

Represents acquisition of a mutex.

Definition at line 50 of file _mutex_padding.h.

Constructor & Destructor Documentation

◆ scoped_lock() [1/2]

template<typename Mutex >
tbb::interface7::internal::padded_mutex< Mutex, false >::scoped_lock::scoped_lock ( )
inline

◆ scoped_lock() [2/2]

template<typename Mutex >
tbb::interface7::internal::padded_mutex< Mutex, false >::scoped_lock::scoped_lock ( padded_mutex< Mutex, false > &  m)
inline

Definition at line 54 of file _mutex_padding.h.

◆ ~scoped_lock()

template<typename Mutex >
tbb::interface7::internal::padded_mutex< Mutex, false >::scoped_lock::~scoped_lock ( )
inline

Definition at line 55 of file _mutex_padding.h.

55 { }

Member Function Documentation

◆ acquire()

template<typename Mutex >
void tbb::interface7::internal::padded_mutex< Mutex, false >::scoped_lock::acquire ( padded_mutex< Mutex, false > &  m)
inline

Definition at line 57 of file _mutex_padding.h.

◆ release()

template<typename Mutex >
void tbb::interface7::internal::padded_mutex< Mutex, false >::scoped_lock::release ( )
inline

Definition at line 59 of file _mutex_padding.h.

◆ try_acquire()

template<typename Mutex >
bool tbb::interface7::internal::padded_mutex< Mutex, false >::scoped_lock::try_acquire ( padded_mutex< Mutex, false > &  m)
inline

Definition at line 58 of file _mutex_padding.h.

58 { return my_scoped_lock.try_acquire(*m.impl()); }

Member Data Documentation

◆ my_scoped_lock

template<typename Mutex >
Mutex::scoped_lock tbb::interface7::internal::padded_mutex< Mutex, false >::scoped_lock::my_scoped_lock
private

Definition at line 51 of file _mutex_padding.h.


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

Copyright © 2005-2020 Intel Corporation. All Rights Reserved.

Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are registered trademarks or trademarks of Intel Corporation or its subsidiaries in the United States and other countries.

* Other names and brands may be claimed as the property of others.