timeout-decorator
                                
                                
                                
                                    timeout-decorator copied to clipboard
                            
                            
                            
                        `use_signals` does not work with a `threading.Lock`
The following code hangs indefinitely on my laptop (OSX).
import threading
import timeout_decorator
@timeout_decorator.timeout(1)
def main():
    l = threading.Lock()
    l.acquire()
    l.acquire()
if __name__ == '__main__':
    main()
With use_signals, it does not fail.  Ideally, there's a way to fix this, but short of that, it'd be great to have this limitation more prominent in the docs.
I tested with https://github.com/bitranox/wrapt_timeout_decorator - we dont have this problem.