Skip to content

Commit

Permalink
Fixes #157: Merge branch '157-pipeline-applications-hang-indefinitely'
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzhoshkun Ismail Shakir committed Mar 15, 2017
2 parents 31d4800 + 45c2abe commit 87a0e92
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/api/iobservable.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#include "iobservable.h"
#include <algorithm>
#ifdef BUILD_PYTHON
#include "gil.h"
#endif


namespace gg
{
Expand All @@ -22,6 +26,9 @@ void IObservable::attach(IObserver & observer)

void IObservable::detach(IObserver & observer)
{
#ifdef BUILD_PYTHON
ScopedPythonGILRelease gil_release;
#endif
std::lock_guard<std::mutex> lock_guard(_observers_lock);
_observers.erase(
std::find(
Expand Down

0 comments on commit 87a0e92

Please sign in to comment.