1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-31 22:15:35 +00:00

At last kill PtrHolder mutex

This commit is contained in:
fredzio 2021-08-05 14:21:56 +02:00
parent 07fa1803f7
commit ee09f3095f

View file

@ -17,13 +17,11 @@ namespace MWPhysics
void updatePtr(const MWWorld::Ptr& updated)
{
std::scoped_lock lock(mMutex);
mPtr = updated;
}
MWWorld::Ptr getPtr()
{
std::scoped_lock lock(mMutex);
return mPtr;
}
@ -35,9 +33,6 @@ namespace MWPhysics
protected:
MWWorld::Ptr mPtr;
std::unique_ptr<btCollisionObject> mCollisionObject;
private:
mutable std::mutex mMutex;
};
}