From: cedric Date: Wed, 17 Aug 2011 09:42:43 +0000 (+0000) Subject: eina: add eina_main_loop_define. X-Git-Tag: submit/2.0alpha-wayland/20121127.222009~541 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=823c49a3da1e62ce752facf5a38b198e16d9552e;p=profile%2Fivi%2Feina.git eina: add eina_main_loop_define. Do not use it. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@62530 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/include/eina_main.h b/src/include/eina_main.h index 82888b5..fa34d59 100644 --- a/src/include/eina_main.h +++ b/src/include/eina_main.h @@ -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); + +/** * @} */ diff --git a/src/lib/eina_main.c b/src/lib/eina_main.c index d05e8f1..4d10f2a 100644 --- a/src/lib/eina_main.c +++ b/src/lib/eina_main.c @@ -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(); +} + /** * @} */