Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

求大佬实现以下aio的poll版本 #38

Open
asmgcc opened this issue Sep 1, 2022 · 9 comments
Open

求大佬实现以下aio的poll版本 #38

asmgcc opened this issue Sep 1, 2022 · 9 comments

Comments

@asmgcc
Copy link

asmgcc commented Sep 1, 2022

目前移植libaio到liteos系统,但是liteos不支持epoll系统调用,不知大佬是否有时间实现一下aio的poll版本,或者能否给一些建议吗?
感谢!

@ireader
Copy link
Owner

ireader commented Sep 2, 2022

liteos如果不支持epoll是不是直接用poll就可以了? 对性能有什么要求?

@asmgcc
Copy link
Author

asmgcc commented Sep 2, 2022

liteos支持poll和select,不支持epoll,
我查看libaio源码,I/O复用只porting了aio-socket-epoll.c,aio-socket-iocp.c,aio-socket-kqueue.c。
请问如果要让libaio内部IO复用使用poll,是不是需要实现一下比如aio-socket-poll.c文件?还是目前libaio本来就支持poll?

@ireader
Copy link
Owner

ireader commented Sep 2, 2022

libaio目前不支持poll,poll改造成epoll成本比较高,具体用到了libaio哪些功能?

@asmgcc
Copy link
Author

asmgcc commented Sep 2, 2022

对性能没有太大要求,只是通过手机局域网拉流等操作。并发很低。

@asmgcc
Copy link
Author

asmgcc commented Sep 2, 2022

使用了libhttp和librtsp内部用到的libaio功能

@ireader
Copy link
Owner

ireader commented Sep 2, 2022

libhttp有poll同步模式, librtsp对aio不是强依赖,回头我加个普通poll模式的librtsp demo

@asmgcc
Copy link
Author

asmgcc commented Sep 2, 2022

好的, 非常感谢!

@asmgcc
Copy link
Author

asmgcc commented Sep 2, 2022

libhttp有poll同步模式, librtsp对aio不是强依赖,回头我加个普通poll模式的librtsp demo

请问libhttp的poll同步模式有demo吗

@asmgcc
Copy link
Author

asmgcc commented Sep 2, 2022

libhttp有poll同步模式, librtsp对aio不是强依赖,回头我加个普通poll模式的librtsp demo

请问libhttp的poll同步模式有demo吗

我用的是libhttp server, 看了一下内部也是用的aio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants