Ecore_Main_Loop_Group

Langue: en

Autres versions - même langue

Version: 378518 (fedora - 01/12/10)

Section: 3 (Bibliothèques de fonctions)

NAME

Main Loop Functions -

These functions control the Ecore event handling loop.

Functions


EAPI void ecore_main_loop_iterate (void)
Runs a single iteration of the main loop to process everything on the queue.
EAPI void ecore_main_loop_begin (void)
Runs the application main loop.
EAPI void ecore_main_loop_quit (void)
Quits the main loop once all the events currently on the queue have been processed.
EAPI void ecore_main_loop_select_func_set (int(*func)(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout))
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.
EAPI void * 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.

Detailed Description

These functions control the Ecore event handling loop.

This loop is designed to work on embedded systems all the way to large and powerful mutli-cpu workstations.

It serialises all system signals and events into a single event queue, that can be easily processed without needing to worry about concurrency. A properly written, event-driven program using this kind of programming does not need threads. It makes the program very robust and easy to follow.

Here is an example of simple program and its basic event loop flow:

For examples of setting up and using a main loop, see event_handler_example::c and timer_example::c.

Function Documentation

EAPI void ecore_main_loop_begin (void)

Runs the application main loop. This function will not return until ecore_main_loop_quit is called.

EAPI void ecore_main_loop_select_func_set (int(*)(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout) 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. This function will be used instead of the system call select and could possible be used to integrate the Ecore event loop with an external event loop.

Warning:

you don't know how to use, don't even try to use it.

Referenced by ecore_main_loop_glib_integrate().

Author

Generated automatically by Doxygen for Ecore from the source code.