Ecore_Main_Loop_Group (3) - Linux Manuals

Ecore_Main_Loop_Group: These functions control the Ecore event handling loop.

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.

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.

Author

Generated automatically by Doxygen for Ecore from the source code.