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

#include <mutex.h>

Collaboration diagram for v8::base::Mutex:

Public Member Functions

 Mutex ()
 
 Mutex (const Mutex &)=delete
 
Mutexoperator= (const Mutex &)=delete
 
 ~Mutex ()
 
void Lock ()
 
void Unlock ()
 
bool TryLock () V8_WARN_UNUSED_RESULT
 
V8_INLINE void AssertHeld () const
 

Private Member Functions

V8_INLINE void AssertHeldAndUnmark ()
 
V8_INLINE void AssertUnheldAndMark ()
 

Private Attributes

absl::Mutex native_handle_
 

Friends

class ConditionVariable
 

Detailed Description

Definition at line 36 of file mutex.h.

Constructor & Destructor Documentation

◆ Mutex() [1/2]

v8::base::Mutex::Mutex ( )

Definition at line 54 of file mutex.cc.

◆ Mutex() [2/2]

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

◆ ~Mutex()

v8::base::Mutex::~Mutex ( )

Definition at line 60 of file mutex.cc.

Member Function Documentation

◆ AssertHeld()

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

Definition at line 58 of file mutex.h.

Here is the caller graph for this function:

◆ AssertHeldAndUnmark()

V8_INLINE void v8::base::Mutex::AssertHeldAndUnmark ( )
inlineprivate

Definition at line 71 of file mutex.h.

Here is the caller graph for this function:

◆ AssertUnheldAndMark()

V8_INLINE void v8::base::Mutex::AssertUnheldAndMark ( )
inlineprivate

Definition at line 80 of file mutex.h.

Here is the caller graph for this function:

◆ Lock()

void v8::base::Mutex::Lock ( )

Definition at line 62 of file mutex.cc.

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

◆ operator=()

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

◆ TryLock()

bool v8::base::Mutex::TryLock ( )

Definition at line 72 of file mutex.cc.

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

◆ Unlock()

void v8::base::Mutex::Unlock ( )

Definition at line 67 of file mutex.cc.

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

Friends And Related Symbol Documentation

◆ ConditionVariable

friend class ConditionVariable
friend

Definition at line 89 of file mutex.h.

Member Data Documentation

◆ native_handle_

absl::Mutex v8::base::Mutex::native_handle_
private

Definition at line 91 of file mutex.h.


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