epoll(epoll_wait等)可用于iOS吗? [英] is epoll (epoll_wait, etc.) available for iOS?

查看:387
本文介绍了epoll(epoll_wait等)可用于iOS吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在着手将一些现有的POSIX兼容代​​码移植到iOS。从我收集的pthreads可用(好),但编译器没有找到。 epoll可用于iOS吗?

I'm just embarking on porting some existing POSIX compliant code to iOS. From what I gather pthreads are available (good), but the compiler is not finding . Is epoll available for iOS?

推荐答案

没有。 epoll 是特定于Linux的系统调用。

No. epoll is a Linux-specific system call.

Darwin内核中最接近的等价物是 kqueue ,但我强烈怀疑在iOS上被认为是SPI(因而也是禁止使用)。

The closest equivalent on the Darwin kernel is kqueue, but I strongly suspect that's considered SPI (and hence off-limits) on iOS.

这篇关于epoll(epoll_wait等)可用于iOS吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆