Release our mutex rather than free-ing it, since we want it around to reuse.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9994 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
10c6e1064d
commit
c166ffc10d
1 changed files with 1 additions and 1 deletions
|
|
@ -354,7 +354,7 @@ namespace Swig {
|
|||
|
||||
~Guard()
|
||||
{
|
||||
PyThread_free_lock(mutex_);
|
||||
PyThread_release_lock(mutex_);
|
||||
}
|
||||
};
|
||||
# define SWIG_GUARD(mutex) Guard _guard(mutex)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue