You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix return codes in wolfsentry_get_thread_deadline();
fix wolfsentry_get_deadline_rel() to handle WOLFSENTRY_DEADLINE_NOW and return positive rel_when when deadline is unexpired;
fix thread->deadline checks in lock functions to handle WOLFSENTRY_DEADLINE_NOW;
add unit tests for wolfsentry_set_deadline_rel(), wolfsentry_set_deadline_rel_usecs(), wolfsentry_get_deadline_rel(), wolfsentry_get_deadline_rel_usecs(), wolfsentry_clear_deadline(), wolfsentry_set_thread_readonly(), and wolfsentry_set_thread_readwrite().
/*!< \brief Get the time remaining until deadline for `thread`, optionally returning the result in `rel_when`, which can be passed as a null pointer. Test for `WOLFSENTRY_ERROR_DECODE_ERROR_CODE(ret) == NO_DEADLINE`, ` == OK`, or ` == EXPIRED`, or `WOLFSENTRY_IS_FAILURE(ret)`, to test (respectively) for no deadline, deadline not reached, deadline passed, or internal error, respectively. */
400
+
/*!< \brief Get the time remaining until deadline for `thread`, optionally returning the result in `rel_when`, which can be passed as a null pointer. Test for `WOLFSENTRY_ERROR_DECODE_ERROR_CODE(ret) == NO_DEADLINE`, ` == OK`, ` == NO_WAITING`, or ` == EXPIRED`, or `WOLFSENTRY_IS_FAILURE(ret)`, to test (respectively) for no deadline, deadline not reached, thread is non-blocking, deadline passed, or internal error, respectively. */
/*!< \brief Get the time remaining until deadline for `thread`, optionally returning the result in `usecs`, which can be passed as a null pointer. Test for `WOLFSENTRY_ERROR_DECODE_ERROR_CODE(ret) == NO_DEADLINE`, ` == OK`, or ` == EXPIRED`, or `WOLFSENTRY_IS_FAILURE(ret)`, to test (respectively) for no deadline, deadline not reached, deadline passed, or internal error, respectively. */
402
+
/*!< \brief Get the time remaining until deadline for `thread`, optionally returning the result in `usecs`, which can be passed as a null pointer. Same return codes as wolfsentry_get_deadline_rel() */
/*!< \brief Set the thread deadline to the time identified by `epoch_secs` and `epoch_nsecs`. The thread will not wait for a lock beyond that deadline. */
0 commit comments