sleep.h

Overview

The sleep.h file declares the sleep and yield interfaces in C.

Since: 10

Related module: FFRT

Summary

Functions

Name Description
FFRT_C_API int ffrt_usleep (uint64_t usec) Suspends the calling thread for a given duration.
FFRT_C_API void ffrt_yield (void) Passes control to other tasks so that they can be executed.