Loading...
Searching...
No Matches
js_thread_i.h
1#pragma once
2
3#include <furi.h>
4#include <mjs_core_public.h>
5#include <mjs_ffi_public.h>
6#include <mjs_exec_public.h>
7#include <mjs_object_public.h>
8#include <mjs_string_public.h>
9#include <mjs_array_public.h>
10#include <mjs_util_public.h>
11#include <mjs_primitive_public.h>
12#include <mjs_array_buf_public.h>
13
14#define INST_PROP_NAME "_"
15
16typedef enum {
17 ThreadEventStop = (1 << 0),
18 ThreadEventCustomDataRx = (1 << 1),
19} WorkerEventFlags;
20
21bool js_delay_with_flags(struct mjs* mjs, uint32_t time);
22
23void js_flags_set(struct mjs* mjs, uint32_t flags);
24
25uint32_t js_flags_wait(struct mjs* mjs, uint32_t flags, uint32_t timeout);
Definition mjs_core.h:63