1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-19 21:10:12 +02:00
This commit is contained in:
AlexVinS 2015-02-15 01:46:47 +03:00
parent aa5e9fc959
commit b71d985d49
2 changed files with 1 additions and 8 deletions

View File

@ -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),

View File

@ -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
};