eina: add eina_main_loop_define.

Do not use it.


SVN revision: 62530
This commit is contained in:
Cedric BAIL 2011-08-17 09:42:43 +00:00
parent 4955dc0c76
commit 1ec7bacc52
2 changed files with 17 additions and 0 deletions

View File

@ -142,6 +142,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);
/**
* @}
*/

View 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();
}
/**
* @}
*/