
April 29, 2020
9:16 p.m.
On 30/04/20 3:29 pm, Raymond Hettinger wrote:
Do you think it is safe to hold a non-reentrant lock across an arbitrary user function?
I think what's wanted here is to block if it's locked by a different thread, but raise an exception if it's locked by the same thread. -- Greg