Salome HOME
Modify default icon for the module
[modules/gui.git] / src / PyInterp / PyInterp_base.cxx
index 025573557c92e75afd93975447aadec85658fe00..50e2b4ba92507c35574b46857f0956aceddd4ae2 100644 (file)
@@ -17,8 +17,6 @@
 #include <Container_init_python.hxx>
 #include <cStringIO.h>
 
-#include <qmutex.h>
-
 #include <utilities.h>
 
 
@@ -34,9 +32,6 @@ using namespace std;
 //#endif
 
 
-static QMutex myMutex(true);
-
-
 PyLockWrapper::PyLockWrapper(PyThreadState* theThreadState): 
   myThreadState(theThreadState),
   mySaveThreadState(KERNEL_PYTHON::_gtstate)
@@ -55,31 +50,6 @@ PyLockWrapper::~PyLockWrapper(){
 }
 
 
-ThreadLock::ThreadLock(QMutex* theMutex, const char* theComment):
-  myMutex(theMutex),
-  myComment(theComment)
-{
-//  if(MYDEBUG && myComment != "") MESSAGE(" ThreadLock "<<this<<"::"<<myMutex<<" - "<<myComment<<" - "<<myMutex->locked());
-  myMutex->lock();
-}
-
-
-ThreadLock::~ThreadLock(){
-//  if(MYDEBUG && myComment != "") MESSAGE("~ThreadLock "<<this<<"::"<<myMutex<<" - "<<myComment);
-  myMutex->unlock();
-}
-
-
-bool IsPyLocked(){
-  return myMutex.locked();
-}
-
-
-ThreadLock GetPyThreadLock(const char* theComment){
-  return ThreadLock(&myMutex,theComment);
-}
-
-
 class PyReleaseLock{
 public:
   ~PyReleaseLock(){