harmony 鸿蒙sleep.h

2025-06-12 浏览 (1)

sleep.h

概述

声明sleep和yield的C接口。

引用文件:<ffrt/sleep.h>

库: libffrt.z.so

系统能力: SystemCapability.Resourceschedule.Ffrt.Core

起始版本: 10

相关模块:FFRT

汇总

函数

名称描述
FFRT_C_API int ffrt_usleep (uint64_t usec)睡眠调用线程固定的时间。
FFRT_C_API void ffrt_yield (void)当前任务主动放权,让其他任务有机会调度执行。

你可能感兴趣的鸿蒙文章

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/rKY5XS