Home ⌂Doc Index ◂Up ▴
Intel(R) Threading Building Blocks Doxygen Documentation  version 4.2.3
tbb::null_mutex::scoped_lock Class Reference

Represents acquisition of a mutex. More...

#include <null_mutex.h>

Inheritance diagram for tbb::null_mutex::scoped_lock:
Collaboration diagram for tbb::null_mutex::scoped_lock:

Public Member Functions

 scoped_lock ()
 
 scoped_lock (null_mutex &)
 
 ~scoped_lock ()
 
void acquire (null_mutex &)
 
bool try_acquire (null_mutex &)
 
void release ()
 

Additional Inherited Members

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

Detailed Description

Represents acquisition of a mutex.

Definition at line 30 of file null_mutex.h.

Constructor & Destructor Documentation

◆ scoped_lock() [1/2]

tbb::null_mutex::scoped_lock::scoped_lock ( )
inline

Definition at line 32 of file null_mutex.h.

32 {}

◆ scoped_lock() [2/2]

tbb::null_mutex::scoped_lock::scoped_lock ( null_mutex )
inline

Definition at line 33 of file null_mutex.h.

33 {}

◆ ~scoped_lock()

tbb::null_mutex::scoped_lock::~scoped_lock ( )
inline

Definition at line 34 of file null_mutex.h.

34 {}

Member Function Documentation

◆ acquire()

void tbb::null_mutex::scoped_lock::acquire ( null_mutex )
inline

Definition at line 35 of file null_mutex.h.

35 {}

◆ release()

void tbb::null_mutex::scoped_lock::release ( )
inline

Definition at line 37 of file null_mutex.h.

37 {}

◆ try_acquire()

bool tbb::null_mutex::scoped_lock::try_acquire ( null_mutex )
inline

Definition at line 36 of file null_mutex.h.

36 { return true; }

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.