Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
sleep.h File Reference

Thread sleep APIs. More...

#include <stdint.h>
#include <zephyr/sys/clock.h>
#include <zephyr/sys/time_units.h>
#include <zephyr/sys/util.h>
#include <zephyr/toolchain.h>
#include <zephyr/syscalls/sleep.h>

Go to the source code of this file.

Functions

k_ticks_t k_sleep_ticks (k_timeout_t timeout)
 Put the current thread to sleep, with tick resolution.
static int32_t k_sleep (k_timeout_t timeout)
 Put the current thread to sleep.
static int32_t k_msleep (int32_t ms)
 Put the current thread to sleep.
static int32_t k_usleep (int32_t us)
 Put the current thread to sleep with microsecond resolution.

Detailed Description

Thread sleep APIs.