Issue #1 wontfix

Threadpool crashes gevent

Anonymous created an issue

gevent 0.13.3, the following code either crashes (assert failure in event.c) or goes into spinwait forever, on both ubuntu and osx:

https://gist.github.com/865355

My best guess is that line 71 here is a critical point:

https://bitbucket.org/denis/gevent-playground/src/49d1cdcdf643/geventutil/threadpool.py#cl-171

That involves non-thread-safe manipulation of gevent's state, if something is already waiting on thread_async_res.