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:
parent
07fa1803f7
commit
ee09f3095f
1 changed files with 0 additions and 5 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue