mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-21 21:17:49 +02:00
cleanup
This commit is contained in:
parent
aa5e9fc959
commit
b71d985d49
@ -10,12 +10,6 @@ IShowActivatable::IShowActivatable()
|
|||||||
type = 0;
|
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_):
|
CIntObject::CIntObject(int used_, Point pos_):
|
||||||
parent_m(nullptr),
|
parent_m(nullptr),
|
||||||
active_m(0),
|
active_m(0),
|
||||||
|
@ -40,9 +40,8 @@ public:
|
|||||||
|
|
||||||
class ILockedUpdatable: public IUpdateable
|
class ILockedUpdatable: public IUpdateable
|
||||||
{
|
{
|
||||||
boost::recursive_mutex updateGuard;
|
|
||||||
public:
|
public:
|
||||||
virtual void runLocked(std::function<void(IUpdateable * )> cb);
|
virtual void runLocked(std::function<void(IUpdateable * )> cb) = 0;
|
||||||
virtual ~ILockedUpdatable(){}; //d-tor
|
virtual ~ILockedUpdatable(){}; //d-tor
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user