-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent cached callables being invoked multiple times when multithrea…
…ding Stop wrapped function being called multiple times when multithreading Add the argument-level-locks to func.py as well as decorators.py Use reentrant lock instead of standard threading lock in decorators.py cachedmethod to not call wrapped function multiple times when multithreading Short-circuit when early caller completes and blocked caller successfully retrieves the value Cleanup variable naming and add more useful comments
- Loading branch information
Jack Brown
committed
Sep 30, 2021
1 parent
40d2710
commit 04379f7
Showing
4 changed files
with
94 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters