282 * @note You cannot call this function from ISR context.
283 * @deprecated Pass a chrono time_point, not an integer millisecond count. For example use `Kernel::Clock::now() + 5s`
284 * rather than `Kernel::get_ms_count() + 5000`.
285 */
286MBED_DEPRECATED_SINCE("mbed-os-6.0.0", "Pass a chrono time_point, not an integer millisecond count. For example use `Kernel::Clock::now() + 5s` rather than `Kernel::get_ms_count() + 5000`.")
287bool wait_until(uint64_t millisec);
288
289 /** Wait for a notification until the specified time.
290 *
291 * Wait until causes the current thread to block until the condition
292 * variable is notified, or a specific time given by millisec parameter is
293 * reached.
294 *
295 * @param abs_time Absolute end time referenced to `Kernel::Clock`
296 * @return `cv_status::timeout` if a timeout occurred, `cv_status::no_timeout` otherwise.
297 *
298 * @note - The thread calling this function must be the owner of the
299 * ConditionVariable's mutex, and it must be locked exactly once.
300 *
301 * @note - Spurious notifications can occur, so the caller of this API
302 * should check to make sure the condition the caller is waiting on has
303 * been met.
304 *
305 * @note - The current thread releases the lock while inside the wait
306 * function and reacquires it upon exiting the function.
This site uses cookies to store information on your computer.
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
Cookie Policy
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.