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

#include <process-heap.h>

Collaboration diagram for cppgc::internal::ProcessGlobalLock:

Public Types

enum class  Reason { kForGC , kForCrossThreadHandleCreation }
 

Static Public Member Functions

template<Reason reason>
static V8_INLINE void Lock ()
 
template<Reason reason>
static V8_INLINE void Unlock ()
 
static V8_INLINE void AssertHeld ()
 

Static Private Attributes

static v8::base::LazyMutex process_mutex_ = LAZY_MUTEX_INITIALIZER
 

Detailed Description

Definition at line 18 of file process-heap.h.

Member Enumeration Documentation

◆ Reason

Enumerator
kForGC 
kForCrossThreadHandleCreation 

Definition at line 20 of file process-heap.h.

Member Function Documentation

◆ AssertHeld()

static V8_INLINE void cppgc::internal::ProcessGlobalLock::AssertHeld ( )
inlinestatic

Definition at line 66 of file process-heap.h.

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

◆ Lock()

template<Reason reason>
static V8_INLINE void cppgc::internal::ProcessGlobalLock::Lock ( )
inlinestatic

Definition at line 26 of file process-heap.h.

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

◆ Unlock()

template<Reason reason>
static V8_INLINE void cppgc::internal::ProcessGlobalLock::Unlock ( )
inlinestatic

Definition at line 47 of file process-heap.h.

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

Member Data Documentation

◆ process_mutex_

v8::base::LazyMutex cppgc::internal::ProcessGlobalLock::process_mutex_ = LAZY_MUTEX_INITIALIZER
staticprivate

Definition at line 69 of file process-heap.h.


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