Qutex: currOwner should use registered sh_ptr to Lockvoker

This ensures that the Lockvoker object we access from currOwner
remains valid past the lifetime of the Lockvoker object that
gets copied and invoked by boost::asio
This commit is contained in:
2025-09-29 14:37:16 -04:00
parent 462247d743
commit 2a60fdd9df
7 changed files with 22 additions and 16 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ public:
* @param qutex The Qutex to get the iterator for
* @return Iterator pointing to this lockvoker in the Qutex's queue
*/
virtual List::iterator getLockvokerIteratorForQutex(Qutex& qutex) = 0;
virtual List::iterator getLockvokerIteratorForQutex(Qutex& qutex) const = 0;
/**
* @brief Awaken this lockvoker by posting it to its io_service