Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use_signals does not work with a threading.Lock #64

Open
mattdee123 opened this issue Jul 21, 2020 · 1 comment
Open

use_signals does not work with a threading.Lock #64

mattdee123 opened this issue Jul 21, 2020 · 1 comment

Comments

@mattdee123
Copy link

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.

@bitranox
Copy link

I tested with https://github.com/bitranox/wrapt_timeout_decorator - we dont have this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants