Skip to content
Snippets Groups Projects
Commit 607dbe1c authored by Nate Coraor's avatar Nate Coraor
Browse files

Use a lock rather than a semaphore

parent 8f7c04ac
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ class DrmaaSession(object):
"""
Abstraction around `drmaa` module `Session` objects.
"""
session_lock = threading.Semaphore(1)
session_lock = threading.Lock()
session = None
def __init__(self, session_constructor, **kwds):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment