Define ANJAY_WITH_EVENT_LOOP
Defined in File anjay_config.h
Define Documentation
-
ANJAY_WITH_EVENT_LOOP
Enable standard implementation of an event loop.
Requires C11
stdatomic.hheader to be available, and either a platform that provides a BSD-compatible socket API, or a compatibility layer file (seeAVS_COMMONS_POSIX_COMPAT_HEADERinavs_commons_config.h). This is designed to best work with the defalt implementation of avs_net sockets (seeAVS_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 foranjay_event_loop_run()for details.