Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
Script::JobQueue Class Referencefinal

#include <Promises.h>

Inheritance diagram for Script::JobQueue:
Collaboration diagram for Script::JobQueue:

Classes

struct  QueueElement
 

Public Member Functions

 ~JobQueue () final=default
 
void runJobs (JSContext *) final
 

Private Types

using QueueType = std::queue< QueueElement >
 

Private Member Functions

JSObject * getIncumbentGlobal (JSContext *cx) final
 
bool enqueuePromiseJob (JSContext *cx, JS::HandleObject, JS::HandleObject job, JS::HandleObject, JS::HandleObject) final
 
bool empty () const final
 
js::UniquePtr< JS::JobQueue::SavedJobQueue > saveJobQueue (JSContext *) final
 

Private Attributes

QueueType m_Jobs
 

Member Typedef Documentation

◆ QueueType

using Script::JobQueue::QueueType = std::queue<QueueElement>
private

Constructor & Destructor Documentation

◆ ~JobQueue()

Script::JobQueue::~JobQueue ( )
finaldefault

Member Function Documentation

◆ empty()

bool Script::JobQueue::empty ( ) const
finalprivate

◆ enqueuePromiseJob()

bool Script::JobQueue::enqueuePromiseJob ( JSContext *  cx,
JS::HandleObject  ,
JS::HandleObject  job,
JS::HandleObject  ,
JS::HandleObject   
)
finalprivate

◆ getIncumbentGlobal()

JSObject * Script::JobQueue::getIncumbentGlobal ( JSContext *  cx)
finalprivate

◆ runJobs()

void Script::JobQueue::runJobs ( JSContext *  )
final

◆ saveJobQueue()

js::UniquePtr< JS::JobQueue::SavedJobQueue > Script::JobQueue::saveJobQueue ( JSContext *  )
finalprivate

Member Data Documentation

◆ m_Jobs

QueueType Script::JobQueue::m_Jobs
private

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