1. Armin Rigo
  2. cpython-withatomic
  3. Branches

Branches

stm-thread

View source
stm-thread
  • Contributors
    1. Loading...
Author Commit Message Date Builds
Armin Rigo
Consolidate again the enter/exit functions in a single '_thread.atomic' object.
Armin Rigo
Reset ts_atomic_counter when a thread exits.
Armin Rigo
Use the same solution as pypy-stm to handle atomic blocks that try to acquire already-locked locks: just raise a _thread.error (in this case a RuntimeError because it's Python 3). Must be added on a case-by-case basis before PyThread_acquire_lock() when we still have the GIL.
Armin Rigo
Minimal changes to reimplement _thread.atomic_enter()/atomic_exit().
Armin Rigo
Use the same branch name as in pypy.