Home
last modified time | relevance | path

Searched refs:EventLoop (Results 1 - 7 of 7) sorted by relevance

/third_party/jerryscript/targets/mbedos5/jerryscript-mbed/jerryscript-mbed-event-loop/
H A DEventLoop.h37 class EventLoop { class
39 static EventLoop instance;
42 static EventLoop& getInstance() { in getInstance()
56 Callback<void(uint32_t)> cb_raw(this, &EventLoop::callback); in wrapFunction()
88 EventLoop() {} in EventLoop() function in mbed::js::EventLoop
/third_party/jerryscript/targets/mbedos5/jerryscript-mbed/jerryscript-mbed-event-loop/source/
H A DEventLoop.cpp15 #include "jerryscript-mbed-event-loop/EventLoop.h"
20 EventLoop EventLoop::instance;
23 EventLoop::getInstance().go(); in event_loop()
/third_party/jerryscript/targets/mbedos5/jerryscript-mbed/jerryscript-mbed-drivers/source/
H A DsetTimeout-js.cpp16 #include "jerryscript-mbed-event-loop/EventLoop.h"
33 int id = mbed::js::EventLoop::getInstance().getQueue().call_in(interval, jerry_call_function, args[0], jerry_create_null(), (jerry_value_t*)NULL, 0); in DECLARE_GLOBAL_FUNCTION()
39 mbed::js::EventLoop::getInstance().getQueue().cancel(id); in DECLARE_GLOBAL_FUNCTION()
61 mbed::js::EventLoop::getInstance().getQueue().cancel(id); in DECLARE_GLOBAL_FUNCTION()
H A DsetInterval-js.cpp16 #include "jerryscript-mbed-event-loop/EventLoop.h"
33 int id = mbed::js::EventLoop::getInstance().getQueue().call_every(interval, jerry_call_function, args[0], jerry_create_null(), (jerry_value_t*)NULL, 0); in DECLARE_GLOBAL_FUNCTION()
39 mbed::js::EventLoop::getInstance().getQueue().cancel(id); in DECLARE_GLOBAL_FUNCTION()
61 mbed::js::EventLoop::getInstance().getQueue().cancel(id); in DECLARE_GLOBAL_FUNCTION()
H A DInterruptIn-js.cpp16 #include "jerryscript-mbed-event-loop/EventLoop.h"
71 // Ensure that the EventLoop frees memory used by the callback. in DECLARE_CLASS_FUNCTION()
72 mbed::js::EventLoop::getInstance().dropCallback(cb_func); in DECLARE_CLASS_FUNCTION()
96 // Pass the function to EventLoop. in DECLARE_CLASS_FUNCTION()
97 mbed::Callback<void()> cb = mbed::js::EventLoop::getInstance().wrapFunction(f); in DECLARE_CLASS_FUNCTION()
136 // Ensure that the EventLoop frees memory used by the callback. in DECLARE_CLASS_FUNCTION()
137 mbed::js::EventLoop::getInstance().dropCallback(cb_func); in DECLARE_CLASS_FUNCTION()
161 // Pass the function to EventLoop. in DECLARE_CLASS_FUNCTION()
162 mbed::Callback<void()> cb = mbed::js::EventLoop::getInstance().wrapFunction(f); in DECLARE_CLASS_FUNCTION()
/third_party/python/Lib/test/test_asyncio/
H A Dtest_selector_events.py85 class EventLoop(BaseSelectorEventLoop): class
91 self.loop = EventLoop(self.selector)
H A Dtest_base_events.py783 class EventLoop(base_events.BaseEventLoop): class
787 loop = EventLoop()

Completed in 6 milliseconds