if (!_dl_uv_run)
{
#endif
+#ifdef USE_TIZEN_CORE
+ if (tcore_ready())
+ {
+ tcore_run();
+ }
+ else
+#endif // USE_TIZEN_CORE
#ifndef USE_G_MAIN_LOOP
- in_main_loop++;
- pd->in_loop = in_main_loop;
- _update_loop_time(pd);
- while (!pd->do_quit)
- _ecore_main_loop_iterate_internal(obj, pd, 0);
- pd->do_quit = 0;
- in_main_loop--;
- pd->in_loop = in_main_loop;
+ {
+ in_main_loop++;
+ pd->in_loop = in_main_loop;
+ _update_loop_time(pd);
+ while (!pd->do_quit)
+ _ecore_main_loop_iterate_internal(obj, pd, 0);
+ pd->do_quit = 0;
+ in_main_loop--;
+ pd->in_loop = in_main_loop;
+ }
#else
if (!pd->do_quit)
{
if (!pd->loop_active) return;
pd->do_quit = 1;
if (obj != ML_OBJ) return;
-#ifdef USE_G_MAIN_LOOP
+#ifdef USE_TIZEN_CORE
+ if (tcore_ready()) tcore_quit();
+#elif defined(USE_G_MAIN_LOOP)
if (ecore_main_loop) g_main_loop_quit(ecore_main_loop);
#elif defined(HAVE_LIBUV)
if (_dl_uv_run) _dl_uv_stop(_dl_uv_default_loop());
tizen_core_h GetCore() const { return tizen_core_; }
+ void Run() { tizen_core_task_run(tizen_core_task_); }
+
+ void Quit() { tizen_core_task_quit(tizen_core_task_); }
+
private:
bool disposed_ = true;
bool ready_ = false;
int tcore_init(void) { return core.Init(); }
void tcore_shutdown(void) { core.Dispose(); }
+
+void tcore_run(void) { core.Run(); }
+
+void tcore_quit(void) { core.Quit(); }