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

Public Member Functions

 WeakCallbackJobTask (MarkerBase *marker, MarkingWorklists::WeakCallbackWorklist *callback_worklist, LivenessBroker &broker)
 
void Run (JobDelegate *delegate) override
 
size_t GetMaxConcurrency (size_t worker_count) const override
 
- Public Member Functions inherited from v8::JobTask
virtual ~JobTask ()=default
 

Private Attributes

MarkerBasemarker_
 
MarkingWorklists::WeakCallbackWorklistcallback_worklist_
 
LivenessBrokerbroker_
 

Detailed Description

Definition at line 343 of file marker.cc.

Constructor & Destructor Documentation

◆ WeakCallbackJobTask()

cppgc::internal::WeakCallbackJobTask::WeakCallbackJobTask ( MarkerBase * marker,
MarkingWorklists::WeakCallbackWorklist * callback_worklist,
LivenessBroker & broker )
inline

Definition at line 345 of file marker.cc.

Member Function Documentation

◆ GetMaxConcurrency()

size_t cppgc::internal::WeakCallbackJobTask::GetMaxConcurrency ( size_t worker_count) const
inlineoverridevirtual

Controls the maximum number of threads calling Run() concurrently, given the number of threads currently assigned to this job and executing Run(). Run() is only invoked if the number of threads previously running Run() was less than the value returned. In general, this should return the latest number of incomplete work items (smallest unit of work) left to process, including items that are currently in progress. |worker_count| is the number of threads currently assigned to this job which some callers may need to determine their return value. Since GetMaxConcurrency() is a leaf function, it must not call back any JobHandle methods.

Implements v8::JobTask.

Definition at line 363 of file marker.cc.

◆ Run()

void cppgc::internal::WeakCallbackJobTask::Run ( JobDelegate * delegate)
inlineoverridevirtual

Implements v8::JobTask.

Definition at line 352 of file marker.cc.

Member Data Documentation

◆ broker_

LivenessBroker& cppgc::internal::WeakCallbackJobTask::broker_
private

Definition at line 371 of file marker.cc.

◆ callback_worklist_

MarkingWorklists::WeakCallbackWorklist* cppgc::internal::WeakCallbackJobTask::callback_worklist_
private

Definition at line 370 of file marker.cc.

◆ marker_

MarkerBase* cppgc::internal::WeakCallbackJobTask::marker_
private

Definition at line 369 of file marker.cc.


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