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

#include <thread-id.h>

Collaboration diagram for v8::internal::ThreadId:

Public Member Functions

constexpr ThreadId () noexcept
 
bool operator== (const ThreadId &other) const
 
bool operator!= (const ThreadId &other) const
 
bool IsValid () const
 
constexpr int ToInteger () const
 

Static Public Member Functions

static ThreadId TryGetCurrent ()
 
static ThreadId Current ()
 
static constexpr ThreadId Invalid ()
 
static constexpr ThreadId FromInteger (int id)
 

Private Member Functions

constexpr ThreadId (int id) noexcept
 

Static Private Member Functions

static V8_EXPORT_PRIVATE int GetCurrentThreadId ()
 

Private Attributes

int id_
 

Static Private Attributes

static constexpr int kInvalidId = -1
 

Detailed Description

Definition at line 14 of file thread-id.h.

Constructor & Destructor Documentation

◆ ThreadId() [1/2]

v8::internal::ThreadId::ThreadId ( )
inlineconstexprnoexcept

Definition at line 17 of file thread-id.h.

Here is the caller graph for this function:

◆ ThreadId() [2/2]

v8::internal::ThreadId::ThreadId ( int id)
inlineexplicitconstexprprivatenoexcept

Definition at line 44 of file thread-id.h.

Member Function Documentation

◆ Current()

static ThreadId v8::internal::ThreadId::Current ( )
inlinestatic

Definition at line 32 of file thread-id.h.

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

◆ FromInteger()

static constexpr ThreadId v8::internal::ThreadId::FromInteger ( int id)
inlinestaticconstexpr

Definition at line 39 of file thread-id.h.

Here is the call graph for this function:

◆ GetCurrentThreadId()

int v8::internal::ThreadId::GetCurrentThreadId ( )
staticprivate

Definition at line 26 of file thread-id.cc.

Here is the caller graph for this function:

◆ Invalid()

static constexpr ThreadId v8::internal::ThreadId::Invalid ( )
inlinestaticconstexpr

Definition at line 35 of file thread-id.h.

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

◆ IsValid()

bool v8::internal::ThreadId::IsValid ( ) const
inline

Definition at line 23 of file thread-id.h.

Here is the caller graph for this function:

◆ operator!=()

bool v8::internal::ThreadId::operator!= ( const ThreadId & other) const
inline

Definition at line 20 of file thread-id.h.

◆ operator==()

bool v8::internal::ThreadId::operator== ( const ThreadId & other) const
inline

Definition at line 19 of file thread-id.h.

◆ ToInteger()

int v8::internal::ThreadId::ToInteger ( ) const
inlineconstexpr

Definition at line 26 of file thread-id.h.

Here is the caller graph for this function:

◆ TryGetCurrent()

ThreadId v8::internal::ThreadId::TryGetCurrent ( )
static

Definition at line 21 of file thread-id.cc.

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

Member Data Documentation

◆ id_

int v8::internal::ThreadId::id_
private

Definition at line 48 of file thread-id.h.

◆ kInvalidId

int v8::internal::ThreadId::kInvalidId = -1
staticconstexprprivate

Definition at line 42 of file thread-id.h.


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