Define ANJAY_WITH_EVENT_LOOP

Define Documentation

ANJAY_WITH_EVENT_LOOP

Enable standard implementation of an event loop.

Requires C11 stdatomic.h header to be available, and either a platform that provides a BSD-compatible socket API, or a compatibility layer file (see AVS_COMMONS_POSIX_COMPAT_HEADER in avs_commons_config.h). This is designed to best work with the defalt implementation of avs_net sockets (see AVS_COMMONS_NET_WITH_POSIX_AVS_SOCKET), but alternative socket implementations can also be used.

The event loop is most useful when thread safety features (ANJAY_WITH_THREAD_SAFETY and AVS_COMMONS_SCHED_THREAD_SAFE) are enabled as well, but this is not a hard requirement. See the documentation for anjay_event_loop_run() for details.