v8
8.6.395 (node 15.0.1)
V8 is Google's open source JavaScript engine
|
#include <v8-platform.h>
Public Member Functions | |
virtual | ~JobTask ()=default |
virtual void | Run (JobDelegate *delegate)=0 |
virtual size_t | GetMaxConcurrency () const =0 |
size_t | GetMaxConcurrency (size_t worker_count) const |
A JobTask represents work to run in parallel from Platform::PostJob().
Definition at line 229 of file v8-platform.h.
|
virtualdefault |
|
pure virtual |
Controls the maximum number of threads calling Run() concurrently. Run() is only invoked if the number of threads previously running Run() was less than the value returned. Since GetMaxConcurrency() is a leaf function, it must not call back any JobHandle methods.
Referenced by JobTask::GetMaxConcurrency().
|
inline |
Definition at line 250 of file v8-platform.h.
References JobTask::GetMaxConcurrency().
|
pure virtual |