harmony 鸿蒙sleep.h

2025-06-12 浏览 (1)

sleep.h

Overview

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

File to include: <ffrt/sleep.h>

Library: libffrt.z.so

System capability: SystemCapability.Resourceschedule.Ffrt.Core

Since: 10

Related module: FFRT

Summary

Functions

NameDescription
FFRT_C_API int ffrt_usleep (uint64_t usec)Sets the fixed sleep time.
FFRT_C_API void ffrt_yield (void)Passes control to other tasks so that they can be executed.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Function Flow Runtime Kit

harmony 鸿蒙FFRT

harmony 鸿蒙condition_variable.h

harmony 鸿蒙ffrt_cond_t

harmony 鸿蒙ffrt_condattr_t

harmony 鸿蒙ffrt_dependence_t

harmony 鸿蒙ffrt_deps_t

harmony 鸿蒙ffrt_function_header_t

harmony 鸿蒙ffrt_mutex_t

harmony 鸿蒙ffrt_mutexattr_t

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/KO72ym