Is there a mutex that guarantees a link pointer will remain valid?

asked 2020-11-02 14:33:59 -0500

If I want to call a function of a LinkPtr, I need to ensure it's not-null, and a simple if-statement is not sufficient if the LinkPtr is being access or potentially deleted from other threads. Would locking the physicsUpdateMutex protect me from this? if not, is there a different mutex I can use?

edit retag flag offensive close merge delete