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

Expose EPOLLEXCLUSIVE #676

Closed
dtolnay opened this Issue Aug 18, 2017 · 4 comments

Comments

Projects
None yet
3 participants
@dtolnay
Copy link

dtolnay commented Aug 18, 2017

Suggestion from i.r-l.o:

EPOLLEXCLUSIVE is not exposed, which is required for some multithreading patterns.

@bobbo

This comment has been minimized.

Copy link

bobbo commented Sep 20, 2017

I'm guessing this looks like adding UnixReady::exclusive() and UnixReady::is_wakeup()? I can work on a patch for this.

Misunderstood the issue above, I'm still interested in working on this.

@bobbo

This comment has been minimized.

Copy link

bobbo commented Sep 20, 2017

Okay I've taken a look at at this. As these are Epoll specific flags, I thought it might be best to follow the unix::UnixReady pattern, so I've added a unix::EpollOpt struct, which will work with PollOpt much the same way UnixReady works with Ready. Still needs to be fleshed out, but the basic idea is shown here https://github.com/carllerche/mio/compare/master...bobbo:issue-676?expand=1. EPOLLWAKEUP (#677) can be added here too.

Would be good to get some feedback before continuing, @carllerche

@carllerche

This comment has been minimized.

Copy link
Owner

carllerche commented Sep 21, 2017

I hesitate to expose this flag until a deeper exploration of multi threaded polling can be done.

@carllerche

This comment has been minimized.

Copy link
Owner

carllerche commented Jan 13, 2019

Closing due to inactivity.

@carllerche carllerche closed this Jan 13, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.