15 #ifndef SHAKA_EMBEDDED_CORE_JS_MANAGER_IMPL_H_ 16 #define SHAKA_EMBEDDED_CORE_JS_MANAGER_IMPL_H_ 18 #include <glog/logging.h> 47 return &network_thread_;
62 std::shared_ptr<ThreadEvent<bool>>
RunScript(
const std::string& path);
63 std::shared_ptr<ThreadEvent<bool>>
RunScript(
const std::string& path,
86 template <
typename... Args>
88 std::function<
void(Args...)> cb) {
89 return [=](Args... args) {
97 #endif // SHAKA_EMBEDDED_CORE_JS_MANAGER_IMPL_H_ std::string GetPathForDynamicFile(const std::string &file) const
std::function< void()> RunLoop
memory::HeapTracer * HeapTracer()
std::function< void(Args...)> MainThreadCallback(std::function< void(Args...)> cb)
static JsManagerImpl * Instance()
NetworkThread * NetworkThread()
std::shared_ptr< ThreadEvent< bool > > RunScript(const std::string &path)
JsManagerImpl(const JsManager::StartupOptions &options)
std::shared_ptr< ThreadEvent< impl::RetOf< Func > > > AddInternalTask(TaskPriority priority, const std::string &name, Func &&callback)
std::string GetPathForStaticFile(const std::string &file) const
TaskRunner * MainThread()