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

当前连接如何知道自己属于哪个 eventLoop ? #654

Open
xiaoyangst opened this issue Dec 21, 2024 · 1 comment
Open

当前连接如何知道自己属于哪个 eventLoop ? #654

xiaoyangst opened this issue Dec 21, 2024 · 1 comment

Comments

@xiaoyangst
Copy link

没有看到相关接口,只能看到当前连接的fd

@ithewei
Copy link
Owner

ithewei commented Dec 23, 2024

c的话hevent_loop可以获取到,c++的话,你可以使用currentThreadEventLoop获取到当前线程所在的EventLoop

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