Search code examples
pythonthread-synchronization

where can I find the source code for python Low-level threading API _thread extension module?


Specifically the source code of lock, which is implemented directly by the _thread extension module.


Solution

  • Answered by Tim Peters, the Cpython implementation:

    github.com/python/cpython/blob/master/Modules/_threadmodule.c