mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 15:17:42 +02:00
Merge pull request #1367 from daleglass/fix-recursive-mutex-warnings
Replace the deprecated QMutex{ QMutex::Recursive} with QRecursiveMutex (solves approximately 1700 warnings).
This commit is contained in:
commit
939d0958c1
10 changed files with 12 additions and 12 deletions
|
@ -648,7 +648,7 @@ private:
|
||||||
|
|
||||||
EntityTreePointer _entityClipboard;
|
EntityTreePointer _entityClipboard;
|
||||||
|
|
||||||
mutable QMutex _viewMutex { QMutex::Recursive };
|
mutable QRecursiveMutex _viewMutex;
|
||||||
ViewFrustum _viewFrustum; // current state of view frustum, perspective, orientation, etc.
|
ViewFrustum _viewFrustum; // current state of view frustum, perspective, orientation, etc.
|
||||||
ViewFrustum _displayViewFrustum;
|
ViewFrustum _displayViewFrustum;
|
||||||
|
|
||||||
|
@ -774,7 +774,7 @@ private:
|
||||||
bool _isMissingSequenceNumbers { false };
|
bool _isMissingSequenceNumbers { false };
|
||||||
|
|
||||||
void checkChangeCursor();
|
void checkChangeCursor();
|
||||||
mutable QMutex _changeCursorLock { QMutex::Recursive };
|
mutable QRecursiveMutex _changeCursorLock;
|
||||||
Qt::CursorShape _desiredCursor{ Qt::BlankCursor };
|
Qt::CursorShape _desiredCursor{ Qt::BlankCursor };
|
||||||
bool _cursorNeedsChanging { false };
|
bool _cursorNeedsChanging { false };
|
||||||
|
|
||||||
|
|
|
@ -69,7 +69,7 @@ private:
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
mutable QMutex _renderArgsMutex{ QMutex::Recursive };
|
mutable QRecursiveMutex _renderArgsMutex;
|
||||||
AppRenderArgs _appRenderArgs;
|
AppRenderArgs _appRenderArgs;
|
||||||
|
|
||||||
RateCounter<500> _renderLoopCounter;
|
RateCounter<500> _renderLoopCounter;
|
||||||
|
|
|
@ -746,7 +746,7 @@ signals:
|
||||||
private:
|
private:
|
||||||
void cleanupOverlaysToDelete();
|
void cleanupOverlaysToDelete();
|
||||||
|
|
||||||
mutable QMutex _mutex { QMutex::Recursive };
|
mutable QRecursiveMutex _mutex;
|
||||||
QMap<QUuid, Overlay::Pointer> _overlays;
|
QMap<QUuid, Overlay::Pointer> _overlays;
|
||||||
QList<Overlay::Pointer> _overlaysToDelete;
|
QList<Overlay::Pointer> _overlaysToDelete;
|
||||||
|
|
||||||
|
|
|
@ -161,7 +161,7 @@ private:
|
||||||
// application specific position, when it's in desktop mode, the reticle position will simply move
|
// application specific position, when it's in desktop mode, the reticle position will simply move
|
||||||
// the system mouse.
|
// the system mouse.
|
||||||
glm::vec2 _reticlePositionInHMD { 0.0f, 0.0f };
|
glm::vec2 _reticlePositionInHMD { 0.0f, 0.0f };
|
||||||
mutable QMutex _reticleLock { QMutex::Recursive };
|
mutable QRecursiveMutex _reticleLock;
|
||||||
|
|
||||||
QPointF _lastKnownRealMouse;
|
QPointF _lastKnownRealMouse;
|
||||||
bool _ignoreMouseMove { false };
|
bool _ignoreMouseMove { false };
|
||||||
|
|
|
@ -44,7 +44,7 @@ const int DIRTY_SIMULATION_FLAGS =
|
||||||
|
|
||||||
class EntitySimulation : public QObject, public std::enable_shared_from_this<EntitySimulation> {
|
class EntitySimulation : public QObject, public std::enable_shared_from_this<EntitySimulation> {
|
||||||
public:
|
public:
|
||||||
EntitySimulation() : _mutex(QMutex::Recursive), _nextExpiry(std::numeric_limits<uint64_t>::max()), _entityTree(nullptr) { }
|
EntitySimulation() : _mutex(), _nextExpiry(std::numeric_limits<uint64_t>::max()), _entityTree(nullptr) { }
|
||||||
virtual ~EntitySimulation() { setEntityTree(nullptr); }
|
virtual ~EntitySimulation() { setEntityTree(nullptr); }
|
||||||
|
|
||||||
inline EntitySimulationPointer getThisPointer() const {
|
inline EntitySimulationPointer getThisPointer() const {
|
||||||
|
@ -90,7 +90,7 @@ protected:
|
||||||
void callUpdateOnEntitiesThatNeedIt(uint64_t now);
|
void callUpdateOnEntitiesThatNeedIt(uint64_t now);
|
||||||
virtual void sortEntitiesThatMoved();
|
virtual void sortEntitiesThatMoved();
|
||||||
|
|
||||||
QMutex _mutex{ QMutex::Recursive };
|
QRecursiveMutex _mutex;
|
||||||
|
|
||||||
SetOfEntities _entitiesToSort; // entities moved by simulation (and might need resort in EntityTree)
|
SetOfEntities _entitiesToSort; // entities moved by simulation (and might need resort in EntityTree)
|
||||||
SetOfEntities _simpleKinematicEntities; // entities undergoing non-colliding kinematic motion
|
SetOfEntities _simpleKinematicEntities; // entities undergoing non-colliding kinematic motion
|
||||||
|
|
|
@ -39,7 +39,7 @@ public:
|
||||||
HMACHash result();
|
HMACHash result();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QMutex _lock { QMutex::Recursive };
|
QRecursiveMutex _lock;
|
||||||
struct hmac_ctx_st* _hmacContext;
|
struct hmac_ctx_st* _hmacContext;
|
||||||
AuthMethod _authMethod;
|
AuthMethod _authMethod;
|
||||||
};
|
};
|
||||||
|
|
|
@ -93,7 +93,7 @@ protected:
|
||||||
int _maxPendingMessages;
|
int _maxPendingMessages;
|
||||||
bool _releaseQueuedMessagesPending;
|
bool _releaseQueuedMessagesPending;
|
||||||
QMutex _pendingPacketsLock;
|
QMutex _pendingPacketsLock;
|
||||||
QMutex _packetsQueueLock{ QMutex::Recursive }; // don't let different threads release the queue while another thread is writing to it
|
QRecursiveMutex _packetsQueueLock; // don't let different threads release the queue while another thread is writing to it
|
||||||
std::list<EditMessagePair> _preServerEdits; // these will get packed into other larger packets
|
std::list<EditMessagePair> _preServerEdits; // these will get packed into other larger packets
|
||||||
std::list<std::unique_ptr<NLPacket>> _preServerSingleMessagePackets; // these will go out as is
|
std::list<std::unique_ptr<NLPacket>> _preServerSingleMessagePackets; // these will go out as is
|
||||||
|
|
||||||
|
|
|
@ -129,7 +129,7 @@ private:
|
||||||
|
|
||||||
QList<EntityDynamicPointer> _dynamicsToAdd;
|
QList<EntityDynamicPointer> _dynamicsToAdd;
|
||||||
QSet<QUuid> _dynamicsToRemove;
|
QSet<QUuid> _dynamicsToRemove;
|
||||||
QMutex _dynamicsMutex { QMutex::Recursive };
|
QRecursiveMutex _dynamicsMutex;
|
||||||
|
|
||||||
workload::SpacePointer _space;
|
workload::SpacePointer _space;
|
||||||
uint64_t _nextBidExpiry;
|
uint64_t _nextBidExpiry;
|
||||||
|
|
|
@ -444,7 +444,7 @@ protected:
|
||||||
QVector<float> _blendedBlendshapeCoefficients;
|
QVector<float> _blendedBlendshapeCoefficients;
|
||||||
int _blendNumber { 0 };
|
int _blendNumber { 0 };
|
||||||
|
|
||||||
mutable QMutex _mutex{ QMutex::Recursive };
|
mutable QRecursiveMutex _mutex;
|
||||||
|
|
||||||
bool _overrideModelTransform { false };
|
bool _overrideModelTransform { false };
|
||||||
bool _triangleSetsValid { false };
|
bool _triangleSetsValid { false };
|
||||||
|
|
|
@ -89,7 +89,7 @@ private:
|
||||||
QHash<size_t, QSharedPointer<Dependency>> _instanceHash;
|
QHash<size_t, QSharedPointer<Dependency>> _instanceHash;
|
||||||
QHash<size_t, size_t> _inheritanceHash;
|
QHash<size_t, size_t> _inheritanceHash;
|
||||||
|
|
||||||
mutable QMutex _instanceHashMutex { QMutex::Recursive };
|
mutable QRecursiveMutex _instanceHashMutex;
|
||||||
mutable QMutex _inheritanceHashMutex;
|
mutable QMutex _inheritanceHashMutex;
|
||||||
|
|
||||||
bool _exiting { false };
|
bool _exiting { false };
|
||||||
|
|
Loading…
Reference in a new issue