Tizen Native API
4.0
|
These functions provide general initialisation and shut down functions.
Functions | |
int | eina_init (void) |
Initializes the Eina library. | |
int | eina_shutdown (void) |
Shuts down the Eina library. | |
int | eina_threads_init (void) |
Initializes the mutexes of the Eina library. | |
int | eina_threads_shutdown (void) |
Shuts down mutexes in the Eina library. | |
Eina_Bool | eina_main_loop_is (void) |
Checks if you are calling this function from the same thread Eina was initialized or not. | |
void | eina_main_loop_define (void) |
You should never use that function except if you really really know what your are doing. | |
Typedefs | |
typedef struct _Eina_Version | Eina_Version |
Defines | |
#define | EINA_VERSION_MAJOR EFL_VERSION_MAJOR |
Definition for the major version of Eina. | |
#define | EINA_VERSION_MINOR EFL_VERSION_MINOR |
Definition for the minor version of Eina. |
The version of Eina.
int eina_init | ( | void | ) |
Initializes the Eina library.
1
or greater on success, 0
on error.This function sets up all the eina modules. It returns 0 on failure (that is, when one of the module fails to initialize), otherwise it returns the number of times it has already been called.
When Eina is not used anymore, call eina_shutdown() to shut down the Eina library.
void eina_main_loop_define | ( | void | ) |
You should never use that function except if you really really know what your are doing.
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.
Eina_Bool eina_main_loop_is | ( | void | ) |
Checks if you are calling this function from the same thread Eina was initialized or not.
Most EFL function are not thread safe and all the call need to happen in the main loop. With this call you could know if you can call an EFL function or not.
int eina_shutdown | ( | void | ) |
Shuts down the Eina library.
0
when all the modules are completely shut down, 1
or greater otherwise.This function shuts down the Eina library. It returns 0 when it has been called the same number of times than eina_init(). In that case it shut down all the Eina modules.
Once this function succeeds (that is, 0
is returned), you must not call any of the Eina function anymore. You must call eina_init() again to use the Eina functions again.
int eina_threads_init | ( | void | ) |
Initializes the mutexes of the Eina library.
1
or greater on success, 0
on error.This function sets up all the mutexes in all eina modules. It returns 0 on failure (that is, when one of the module fails to initialize), otherwise it returns the number of times it has already been called.
When the mutexes are not used anymore, call eina_threads_shutdown() to shut down the mutexes.
This function should never be called outside of the main loop.
int eina_threads_shutdown | ( | void | ) |
Shuts down mutexes in the Eina library.
0
when all mutexes are completely shut down, 1
or greater otherwise.This function shuts down the mutexes in the Eina library. It returns 0 when it has been called the same number of times than eina_threads_init(). In that case it shut down all the mutexes.
Once this function succeeds (that is, 0
is returned), you must not call any of the Eina function in a thread anymore. You must call eina_threads_init() again to use the Eina functions in a thread again.
This function should never be called outside of the main loop.