mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-19 21:10:12 +02:00
cleanup
This commit is contained in:
parent
aa5e9fc959
commit
b71d985d49
@ -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),
|
||||
|
@ -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
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user