Revert "efl loop - provide efl namespace versions of begin/end locks on mainloop"
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Wed, 17 Jan 2018 12:30:49 +0000 (21:30 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Tue, 3 Apr 2018 02:42:50 +0000 (11:42 +0900)
This reverts commit 76b837002eaea56b5ecb174bffe284012084dc74.

seems no one wants efl api's for this

src/lib/ecore/Ecore_Eo.h
src/lib/ecore/efl_loop.c

index ba32d38..b1899c5 100644 (file)
@@ -105,32 +105,6 @@ EAPI Eina_Promise *efl_loop_promise_new(const Eo *obj, Eina_Promise_Cancel_Cb ca
 /* We ue the factory pattern here, so you shouldn't call eo_add directly. */
 EAPI Eo *efl_main_loop_get(void);
 
-/**
- * Sync with main loop and lock it out and begin a mainloop eo context
- * 
- * @result The number of time ecore_thread_main_loop_begin() has been called
- * in this thread. If not, it returns @c -1.
- * 
- * This function suspends the main loop in a safe state and then lets
- * use any EFL call you want after it returns as if it were running in the
- * main loop (except it's called from the calling thread). Be careful since
- * the main loop is blocked until you call efl_main_loop_release(). This is
- * the only sane way to achieve pseudo thread safety.
- *
- * Note that until the main loop is blocked, this function stalls until the
- * main loop comes to a safe point to be paused.
- */
-EAPI int efl_main_loop_steal(void);
-
-/* Release a main loop lock taken by efl_main_loop_steal()
- * 
- * @result The number of times efl_main_loop_release() needs to be called
- * before the main loop is unlocked again. @c -1 will be returned if you
- * are trying to unlock when no matching call to efl_main_loop_steal() was
- * made by this thread.
- */
-EAPI int efl_main_loop_release(void);
-
 typedef struct _Efl_Future_Composite_Progress Efl_Future_All_Progress;
 
 struct _Efl_Future_Composite_Progress
index a01bdd6..5172901 100644 (file)
@@ -66,18 +66,6 @@ efl_main_loop_get(void)
    return efl_loop_main_get(EFL_LOOP_CLASS);
 }
 
-EAPI int
-efl_main_loop_steal(void)
-{
-   return ecore_thread_main_loop_begin();
-}
-
-EAPI int
-efl_main_loop_release(void)
-{
-   return ecore_thread_main_loop_end();
-}
-
 EOLIAN static void
 _efl_loop_iterate(Eo *obj, Efl_Loop_Data *pd)
 {