gpt4 book ai didi

iphone - iOS4上的C语言毫秒 sleep

转载 作者:行者123 更新时间:2023-12-01 18:03:19 28 4
gpt4 key购买 nike

我试图在 iPhone 上的 C 语言中睡指定的毫秒数,但我一直在控制台上收到一些提示:

Detected an attempt to call a symbol in system libraries that is not present on the iPhone: nanosleep$UNIX2003 called from function ...

Detected an attempt to call a symbol in system libraries that is not present on the iPhone: usleep$UNIX2003 called from function ...

Detected an attempt to call a symbol in system libraries that is not present on the iPhone: select$UNIX2003 called from function ...



如果 usleep,nanosleep 并选择一个不可用的,我该如何 sleep ? iOS4上的C语言毫秒???

我的想法在这里用完了......

提前谢谢,

最佳答案

如果必须,请使用 usleep(10000)(1/100 秒),但请保留它以供后台线程/单元测试/明智使用...

关于iphone - iOS4上的C语言毫秒 sleep ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3984700/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com