#pragma once #include #include #include #include #include #include #include #include #include #include #define INST_PROP_NAME "_" typedef enum { ThreadEventStop = (1 << 0), ThreadEventCustomDataRx = (1 << 1), } WorkerEventFlags; bool js_delay_with_flags(struct mjs* mjs, uint32_t time); void js_flags_set(struct mjs* mjs, uint32_t flags); uint32_t js_flags_wait(struct mjs* mjs, uint32_t flags, uint32_t timeout);