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

#include <task-handle.h>

Collaboration diagram for cppgc::internal::SingleThreadedHandle:

Classes

struct  NonEmptyTag
 

Public Member Functions

 SingleThreadedHandle ()=default
 
 SingleThreadedHandle (NonEmptyTag)
 
void Cancel ()
 
void CancelIfNonEmpty ()
 
bool IsCanceled () const
 
 operator bool () const
 

Private Attributes

std::shared_ptr< bool > is_cancelled_
 

Detailed Description

Definition at line 16 of file task-handle.h.

Constructor & Destructor Documentation

◆ SingleThreadedHandle() [1/2]

cppgc::internal::SingleThreadedHandle::SingleThreadedHandle ( )
default

◆ SingleThreadedHandle() [2/2]

cppgc::internal::SingleThreadedHandle::SingleThreadedHandle ( NonEmptyTag )
inlineexplicit

Definition at line 22 of file task-handle.h.

Member Function Documentation

◆ Cancel()

void cppgc::internal::SingleThreadedHandle::Cancel ( )
inline

Definition at line 25 of file task-handle.h.

Here is the caller graph for this function:

◆ CancelIfNonEmpty()

void cppgc::internal::SingleThreadedHandle::CancelIfNonEmpty ( )
inline

Definition at line 30 of file task-handle.h.

Here is the caller graph for this function:

◆ IsCanceled()

bool cppgc::internal::SingleThreadedHandle::IsCanceled ( ) const
inline

Definition at line 36 of file task-handle.h.

Here is the caller graph for this function:

◆ operator bool()

cppgc::internal::SingleThreadedHandle::operator bool ( ) const
inlineexplicit

Definition at line 42 of file task-handle.h.

Member Data Documentation

◆ is_cancelled_

std::shared_ptr<bool> cppgc::internal::SingleThreadedHandle::is_cancelled_
private

Definition at line 47 of file task-handle.h.


The documentation for this struct was generated from the following file: