IoTivity-Lite
|
Default implementation of the main loop using poll. More...
#include "util/oc_features.h"
Functions | |
bool | oc_poll_loop_init (void) |
Initialize handles. More... | |
bool | oc_poll_loop_is_terminated (void) |
Check if the main loop has been terminated. More... | |
void | oc_poll_loop_run (void) |
Run the main loop until termination. More... | |
void | oc_poll_loop_shutdown (void) |
Shutdown handles. More... | |
void | oc_poll_loop_signal (void) |
Signal the main loop to wake up and process events. More... | |
void | oc_poll_loop_terminate (void) |
Terminate the main loop. More... | |
Default implementation of the main loop using poll.
Uses eventfd on Linux and Android, anonymous pipe on other POSIX systems, unnamed event object with WaitForSingleObject on Windows.
bool oc_poll_loop_init | ( | void | ) |
Initialize handles.
bool oc_poll_loop_is_terminated | ( | void | ) |
Check if the main loop has been terminated.
void oc_poll_loop_run | ( | void | ) |
Run the main loop until termination.
void oc_poll_loop_shutdown | ( | void | ) |
Shutdown handles.
void oc_poll_loop_signal | ( | void | ) |
Signal the main loop to wake up and process events.
void oc_poll_loop_terminate | ( | void | ) |
Terminate the main loop.