Qutex: Document the need to deal with early release()s
This commit is contained in:
@@ -296,6 +296,13 @@ void Qutex::release()
|
|||||||
lock.acquire();
|
lock.acquire();
|
||||||
|
|
||||||
isOwned = false;
|
isOwned = false;
|
||||||
|
/** FIXME:
|
||||||
|
* We need to be able to call this twice or more from the same request.
|
||||||
|
* We can either add further metadata to this class, or we can force all
|
||||||
|
* release() calls to be done via the Continuation object, such that it
|
||||||
|
* can ensure that it doesn't double-release any locks that were released
|
||||||
|
* early.
|
||||||
|
*/
|
||||||
#ifdef CONFIG_ENABLE_DEBUG_LOCKS
|
#ifdef CONFIG_ENABLE_DEBUG_LOCKS
|
||||||
currOwner = nullptr;
|
currOwner = nullptr;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user