qh_poll_check_cb_ft

Updated: April 19, 2023

Prototype for a callback function that provides the results of a poll check

Synopsis:

#include <qh/time.h>
typedef int qh_poll_check_cb_ft(void *cb_data,
                                bool *continue_polling);

Arguments:

cb_data
The callback data provided in the cb_data parameter to qh_poll_until().
continue_polling
Tells qh_poll_until() whether to continue polling.

Library:

qh

Returns:

EOK on success, which indicates that the poll executed correctly. The continue_polling value determines whether polling continues or not. On failure, returns a standard errno (errno is also set), which is used as-is as the return value of qh_poll_until(). Polling stops and qh_poll_until() returns EOK to the caller.