PythonMonkey   v1.0.1 (dev)
Loading...
Searching...
No Matches
JobQueue.cc File Reference

Implements the ECMAScript Job Queue. More...

#include "include/JobQueue.hh"
#include "include/modules/pythonmonkey/pythonmonkey.hh"
#include "include/PyEventLoop.hh"
#include "include/pyTypeFactory.hh"
#include "include/PromiseType.hh"
#include <Python.h>
#include <jsfriendapi.h>
#include <mozilla/Unused.h>
#include <stdexcept>
Include dependency graph for JobQueue.cc:

Functions

bool sendJobToMainLoop (PyObject *pyFunc)
 Send job to the Python event-loop on main thread (Thread-Safe)
 

Detailed Description

Implements the ECMAScript Job Queue.

Author
Tom Tang (xmade.nosp@m.r@di.nosp@m.strib.nosp@m.utiv.nosp@m.e.net.nosp@m.work)
Date
2023-04-03

Function Documentation

◆ sendJobToMainLoop()

bool sendJobToMainLoop ( PyObject *  pyFunc)

Send job to the Python event-loop on main thread (Thread-Safe)

Parameters
pyFunc- the Python job function
Returns
success