Lines Matching defs:engine
75 using InitWorkerFunc = std::function<void(NativeEngine* engine)>;
78 using OffWorkerFunc = std::function<void(NativeEngine* engine)>;
135 virtual bool InitTaskPoolThread(NativeEngine* engine, NapiConcurrentCallback callback) = 0;
305 virtual bool CallInitWorkerFunc(NativeEngine* engine);
308 virtual bool CallOffWorkerFunc(NativeEngine* engine);
323 virtual void SetHostEngine(NativeEngine* engine);
381 void RegisterWorkerFunction(const NativeEngine* engine);
437 * @param blocklist the blocklist set to native engine
463 * @brief run the uv loop in the engine by the designated uv run mode
470 * @brief stop the uv loop in the engine
489 static void SetMainThreadEngine(NativeEngine* engine)
494 g_mainThreadEngine_ = engine;
588 // protect alived engine set and last engine id