diff options
Diffstat (limited to 'SWIG/_m2crypto.i')
-rw-r--r-- | SWIG/_m2crypto.i | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/SWIG/_m2crypto.i b/SWIG/_m2crypto.i index c061ea8..f13418f 100644 --- a/SWIG/_m2crypto.i +++ b/SWIG/_m2crypto.i @@ -5,7 +5,12 @@ * Copyright (C) 2004-2006 OSAF. All Rights Reserved. */ -%module _m2crypto +%module(threads=1) _m2crypto +/* We really don't need threadblock (PyGILState_Ensure() etc.) anywhere. + Disable threadallow as well, only enable it for operations likely to + block. */ +%nothreadblock; +%nothreadallow; %{ #include <openssl/err.h> |