AlexVinS 10 ani în urmă
părinte
comite
b71d985d49
2 a modificat fișierele cu 1 adăugiri și 8 ștergeri
  1. 0 6
      client/gui/CIntObject.cpp
  2. 1 2
      client/gui/CIntObject.h

+ 0 - 6
client/gui/CIntObject.cpp

@@ -10,12 +10,6 @@ IShowActivatable::IShowActivatable()
 	type = 0;
 }
 
-void ILockedUpdatable::runLocked(std::function<void(IUpdateable*)> cb)
-{
-	boost::unique_lock<boost::recursive_mutex> lock(updateGuard);
-	cb(this);
-}
-
 CIntObject::CIntObject(int used_, Point pos_):
 	parent_m(nullptr),
 	active_m(0),

+ 1 - 2
client/gui/CIntObject.h

@@ -40,9 +40,8 @@ public:
 
 class ILockedUpdatable: public IUpdateable
 {
-	boost::recursive_mutex updateGuard;
 public:
-	virtual void runLocked(std::function<void(IUpdateable * )> cb);
+	virtual void runLocked(std::function<void(IUpdateable * )> cb) = 0;
 	virtual ~ILockedUpdatable(){}; //d-tor
 };