Tizen Native API
|
Functions | |
Eina_Bool | ecore_fork_reset_callback_add (Ecore_Cb func, const void *data) |
Adds a function to be called by ecore_fork_reset(). | |
Eina_Bool | ecore_fork_reset_callback_del (Ecore_Cb func, const void *data) |
Removes the specified callback. | |
void | ecore_fork_reset (void) |
Resets the ecore's internal state after a fork. | |
void | ecore_main_loop_iterate (void) |
Runs a single iteration of the main loop to process everything on the queue. | |
void | ecore_main_loop_select_func_set (Ecore_Select_Function func) |
Sets the function to use when monitoring multiple file descriptors, and waiting until one of more of the file descriptors before ready for some class of I/O operation. | |
Ecore_Select_Function | ecore_main_loop_select_func_get (void) |
Gets the select function set by ecore_select_func_set(), or the native select function if none was set. | |
Eina_Bool | ecore_main_loop_glib_integrate (void) |
Request ecore to integrate GLib's main loop. | |
void | ecore_main_loop_glib_always_integrate_disable (void) |
Disable always integrating glib. | |
void | ecore_main_loop_begin (void) |
Runs the application main loop. | |
void | ecore_main_loop_quit (void) |
Quits the main loop once all the events currently on the queue have been processed. | |
void | ecore_main_loop_thread_safe_call_async (Ecore_Cb callback, void *data) |
Called asynchronously in the main loop. | |
void * | ecore_main_loop_thread_safe_call_sync (Ecore_Data_Cb callback, void *data) |
Called synchronously in the main loop. | |
int | ecore_thread_main_loop_begin (void) |
Suspends the main loop in the know state. | |
int | ecore_thread_main_loop_end (void) |
Unlocks the main loop. | |
Typedefs | |
typedef Eina_Bool(* | Ecore_Task_Cb )(void *data) |
The boolean type for a callback that is run for a task (timer, idler, poller, animator, and so on). | |
typedef void(* | Ecore_Cb )(void *data) |
Called as a hook when a certain point in the execution is reached. | |
typedef void *(* | Ecore_Data_Cb )(void *data) |
Called to return data to the main function. | |
typedef int(* | Ecore_Select_Function )(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout) |
The integer type for a function that can be used to replace select() in the main loop. | |
Defines | |
#define | ECORE_CALLBACK_CANCEL EINA_FALSE |
#define | ECORE_CALLBACK_RENEW EINA_TRUE |
#define | ECORE_CALLBACK_PASS_ON EINA_TRUE |
#define | ECORE_CALLBACK_DONE EINA_FALSE |
This group discusses functions that are acting on Ecore's main loop itself or on events and infrastructure directly linked to it. Most programs only need to start and end the main loop, the rest of the function discussed here is meant to be used in special situations, and with great care.
For details on the usage of ecore's main loop and how it interacts with other ecore facilities see: The Ecore Main Loop.
#define ECORE_CALLBACK_CANCEL EINA_FALSE |
Return value to remove a callback
#define ECORE_CALLBACK_DONE EINA_FALSE |
Return value to stop event handling
#define ECORE_CALLBACK_PASS_ON EINA_TRUE |
Return value to pass an event to the next handler
#define ECORE_CALLBACK_RENEW EINA_TRUE |
Return value to keep a callback
void ecore_fork_reset | ( | void | ) |
Resets the ecore's internal state after a fork.
Eina_Bool ecore_fork_reset_callback_add | ( | Ecore_Cb | func, |
const void * | data | ||
) |
Adds a function to be called by ecore_fork_reset().
This queues func to be called (and passes data as its argument) when ecore_fork_reset() is called. This allows other libraries and subsystems to also reset their internal state after a fork.
[in] | func | The function to be called |
[in] | data | A data pointer to pass to the called function func |
Eina_Bool ecore_fork_reset_callback_del | ( | Ecore_Cb | func, |
const void * | data | ||
) |
Removes the specified callback.
This deletes the callback added by ecore_fork_reset_callback_add() using the function and data pointer to specify which callback to remove.
[in] | func | The function to be called |
[in] | data | A data pointer to pass to the called function func |
void ecore_main_loop_begin | ( | void | ) |
Runs the application main loop.
This function will not return until ecore_main_loop_quit is called. It will check for expired timers, idlers, file descriptors being watched by fd handlers, etc. Once everything is done, before entering again on idle state, any callback set as Idle_Enterer
will be called.
void ecore_main_loop_glib_always_integrate_disable | ( | void | ) |
Disable always integrating glib.
Eina_Bool ecore_main_loop_glib_integrate | ( | void | ) |
Request ecore to integrate GLib's main loop.
This will add a small overhead during every main loop interaction by checking glib's default main context (used by its main loop). If it have events to be checked (timers, file descriptors or idlers), then these will be polled alongside with Ecore's own events, then dispatched before Ecore's. This is done by calling ecore_main_loop_select_func_set().
EINA_FALSE
if it failed, likely no GLib support in Ecore. void ecore_main_loop_iterate | ( | void | ) |
Runs a single iteration of the main loop to process everything on the queue.
It does everything that is already done inside an Ecore
main loop, like checking for expired timers, idlers, etc. But it will do it only once and return, instead of keep watching for new events.
void ecore_main_loop_quit | ( | void | ) |
Quits the main loop once all the events currently on the queue have been processed.
This function returns immediately, but will mark the ecore_main_loop_begin() function to return at the end of the current main loop iteration.
Gets the select function set by ecore_select_func_set(), or the native select function if none was set.
void ecore_main_loop_select_func_set | ( | Ecore_Select_Function | func | ) |
Sets the function to use when monitoring multiple file descriptors, and waiting until one of more of the file descriptors before ready for some class of I/O operation.
func | The function to be used. |
void ecore_main_loop_thread_safe_call_async | ( | Ecore_Cb | callback, |
void * | data | ||
) |
Called asynchronously in the main loop.
callback | The callback to call in the main loop |
data | The data to give to that call |
void* ecore_main_loop_thread_safe_call_sync | ( | Ecore_Data_Cb | callback, |
void * | data | ||
) |
Called synchronously in the main loop.
callback | The callback to call in the main loop |
data | The data to give to that call |
int ecore_thread_main_loop_begin | ( | void | ) |
Suspends the main loop in the know state.
This function suspends the main loop in the know state. This lets you use any EFL call that you want after it returns. Be careful, the main loop is blocked until you call ecore_thread_main_loop_end(). This is the only way to achieve pseudo thread safety.
-1
. int ecore_thread_main_loop_end | ( | void | ) |
Unlocks the main loop.
-1
is retured if you are trying to unlock when there aren't enough calls to ecore_thread_main_loop_begin().