简体   繁体   中英

Python select epoll in Gevent

I'm working on GPIO stuff in Python, need to register the fd on epoll, since gevent monkey patched the python select library, there will not be select.epoll if monkey.patch_all(select=True), so here comes two questions:

  1. Will be consequence that the monkey.patch_all(select=False)?
  2. Or does Gevent provide its own epoll register stuff?

Thank you in advance.

Gevent does not provide their own epoll implementation yet.
If you don't monkeypatch select it will block the entire process instead of just one greenlet.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM