Specifically the source code of lock, which is implemented directly by the _thread extension module.
Answered by Tim Peters, the Cpython implementation:
github.com/python/cpython/blob/master/Modules/_threadmodule.c
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With