eina: add eina_main_loop_define.
authorcedric <cedric>
Wed, 17 Aug 2011 09:42:43 +0000 (09:42 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 17 Aug 2011 09:42:43 +0000 (09:42 +0000)
Do not use it.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@62530 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/include/eina_main.h
src/lib/eina_main.c

index 82888b5..fa34d59 100644 (file)
@@ -143,6 +143,15 @@ EAPI int eina_threads_shutdown(void);
 EAPI Eina_Bool eina_main_loop_is(void);
 
 /**
+ * @brief You should never use that function excpet if you really really know what your are doing.
+ * @since 1.1.0
+ *
+ * If you are reading this documentation, that certainly means you don't know what is the purpose of
+ * this call and you should just not use it.
+ */
+EAPI void eina_main_loop_define(void);
+
+/**
  * @}
  */
 
index d05e8f1..4d10f2a 100644 (file)
@@ -380,6 +380,14 @@ eina_main_loop_is(void)
    return EINA_FALSE;
 }
 
+/** The purpose of this API should not be documented, it is used only by the one who know what they are doing. */
+EAPI void
+eina_main_loop_define(void)
+{
+   _eina_pid = getpid();
+   _eina_main_loop = pthread_self();
+}
+
 /**
  * @}
  */