zacharyvoase/gevent-selfpipe — Issue #1: use loop.async watcher
Author: denik
Created: 2012-01-07 11:07:20+00:00
State: open

There's a self-pipe inside libev, which is exposed via 'async' watchers. Unfortunately, 'async' watcher is broken in gevent until 1.0a3. However, starting from gevent 1.0b1, async watcher is better for this kind of stuff:

See example here: https://bitbucket.org/denis/gevent/src/b47efed2ec45/examples/multiple_threads.py