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

added the multi-threading support #7

Merged
merged 1 commit into from
Aug 5, 2017

Conversation

ginward
Copy link
Contributor

@ginward ginward commented Aug 1, 2017

Use the reentrant lock to make sure that this module still works when multi-threaded. It would not change the behaviour when it is single-threaded, as the reentrant lock can be re-acquired by the same thread. It will, however, make sure that multiple threads don't break the time counter.

@tomasbasham tomasbasham merged commit ea16e71 into tomasbasham:master Aug 5, 2017
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

Successfully merging this pull request may close these issues.

2 participants