dabeaz / curio

Good Curio!
Other
4.04k stars 243 forks source link

Protect task-local with a reentrant lock #215

Closed ZhukovAlexander closed 6 years ago

ZhukovAlexander commented 7 years ago

This is to fix #214. The implementation is a simplified version of the gevent's approach, which in turn is borrowed from cpython:

  1. https://github.com/python/cpython/blob/master/Lib/_threading_local.py
  2. https://github.com/gevent/gevent/blob/master/src/gevent/local.py
dabeaz commented 6 years ago

Task locals were removed. So closing.