gpt4 book ai didi

linux - Linux 中是否有任何 CreateEvent、WaitForSingleObject 和 SetEvent 等价物?

转载 作者:可可西里 更新时间:2023-11-01 10:41:34 27 4
gpt4 key购买 nike

最近我需要将我的项目从 Windows 移植到 Linux,但存在一些 WIN32 API,如 CreateEvent、WaitForSingleObject、SetEvent 等。在 Linux 中是否有任何等效项? Linux OS API或自己实现的函数都可以。

最佳答案

好吧,您没有提到您使用的编程语言。例如在 C++11 中你可以这样做。您可以在此处找到示例:https://github.com/moya-lang/Event

关于linux - Linux 中是否有任何 CreateEvent、WaitForSingleObject 和 SetEvent 等价物?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52831684/

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