Back to libut API Reference


SYNOPSIS

    #include "libut/ut.h"
    void UT_event_loop(void);


DESCRIPTION

This function enters the libut event loop. It never returns.

Once in the event loop, all program activity takes place as callbacks to I/O availability and timer expiration.


NOTES

All libut-based programs must enter the event loop eventually.

Programs must first initialize libut using UT_init(3). Then they may perform other libut functions in the course of their startup activities, such as defining memory pools via UT_mem_pool_create(3) or setting up interpreter commands using UT_shl_cmd_create(3), then finally calling UT_event_loop().


SEE ALSO

UT_event_once(3), UT_init(3)


AUTHOR

Troy D. Hanson <thanson@users.sourceforge.net>