Add a simple Job queue in default port. (#1685)
Job queue (event loop) is the basis of Promise. Each port should implement their own job queue. JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang zidong.jiang@intel.com
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
#ifndef JERRY_PORT_DEFAULT_H
|
||||
#define JERRY_PORT_DEFAULT_H
|
||||
|
||||
#include "jerryscript.h"
|
||||
#include "jerry-port.h"
|
||||
|
||||
#include <stdbool.h>
|
||||
@@ -36,6 +37,11 @@ bool jerry_port_default_is_abort_on_fail (void);
|
||||
jerry_log_level_t jerry_port_default_get_log_level (void);
|
||||
void jerry_port_default_set_log_level (jerry_log_level_t level);
|
||||
|
||||
#ifndef CONFIG_DISABLE_ES2015_PROMISE_BUILTIN
|
||||
void jerry_port_jobqueue_init (void);
|
||||
jerry_value_t jerry_port_jobqueue_run (void);
|
||||
#endif /* !CONFIG_DISABLE_ES2015_PROMISE_BUILTIN */
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user