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

Pull request with context manager improvements. #54

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

brookman1
Copy link

Changed the context manager for reliability, seems like enter / exit methods are simpler to read sometimes.
Removed the stdout prints.
Added threaded test -- threaded tests are not fully predictable, and call actual threaded calls instead of mocks; maybe this one will be disabled in the future.

brookman1 added 5 commits May 3, 2020 13:32
    time.sleep(n) is a kernel call that pauses the entire Python interpreter, Python threads a virtual.  Using condition.wait(n) lets the other threads execute while waiting, this bypasses the GIL (global interpreter lock).

    Added workflow to enable tests after commit.
…ime.sleep to avoid Global Interpreter Lock (GIL).
…ead of time.sleep to avoid Global Interpreter Lock (GIL).
removed some stdout prints, changed the context class.
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