v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::base::RecursiveMutex Class Referencefinal

#include <mutex.h>

Collaboration diagram for v8::base::RecursiveMutex:

Public Member Functions

 RecursiveMutex ()=default
 
 RecursiveMutex (const RecursiveMutex &)=delete
 
RecursiveMutexoperator= (const RecursiveMutex &)=delete
 
 ~RecursiveMutex ()
 
void Lock ()
 
void Unlock ()
 
bool TryLock () V8_WARN_UNUSED_RESULT
 
V8_INLINE void AssertHeld () const
 

Private Attributes

std::atomic< int > thread_id_ = 0
 
int level_ = 0
 
Mutex mutex_
 

Detailed Description

Definition at line 126 of file mutex.h.

Constructor & Destructor Documentation

◆ RecursiveMutex() [1/2]

v8::base::RecursiveMutex::RecursiveMutex ( )
default

◆ RecursiveMutex() [2/2]

v8::base::RecursiveMutex::RecursiveMutex ( const RecursiveMutex & )
delete

◆ ~RecursiveMutex()

v8::base::RecursiveMutex::~RecursiveMutex ( )

Definition at line 12 of file mutex.cc.

Member Function Documentation

◆ AssertHeld()

V8_INLINE void v8::base::RecursiveMutex::AssertHeld ( ) const
inline

Definition at line 153 of file mutex.h.

Here is the caller graph for this function:

◆ Lock()

void v8::base::RecursiveMutex::Lock ( )

Definition at line 16 of file mutex.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

RecursiveMutex & v8::base::RecursiveMutex::operator= ( const RecursiveMutex & )
delete

◆ TryLock()

bool v8::base::RecursiveMutex::TryLock ( )

Definition at line 39 of file mutex.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Unlock()

void v8::base::RecursiveMutex::Unlock ( )

Definition at line 28 of file mutex.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ level_

int v8::base::RecursiveMutex::level_ = 0
private

Definition at line 161 of file mutex.h.

◆ mutex_

Mutex v8::base::RecursiveMutex::mutex_
private

Definition at line 162 of file mutex.h.

◆ thread_id_

std::atomic<int> v8::base::RecursiveMutex::thread_id_ = 0
private

Definition at line 160 of file mutex.h.


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