Skip to content

Commit

Permalink
add more explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
reaperhulk committed Sep 13, 2015
1 parent 0bb5194 commit 58ef075
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cryptography/hazmat/bindings/openssl/binding.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ def _lock_cb(cls, mode, n, file, line):
# although it's still unclear what happens when a subinterpreter which
# has registered the locks is destroyed. Do the callback functions still work
# or are all the objects associated with that subinterpreter destroyed?
# imp.acquire_lock() is global even in 3.4+ while import locks have moved to
# per module granularity.
try:
imp.acquire_lock()
Binding.init_static_locks()
Expand Down

0 comments on commit 58ef075

Please sign in to comment.