lowLock must be locked before highLock in the queue #5
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "zeripath/levelqueue:lock-order"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Unfortunately the locking order in the queue.Close() function is
incorrect as the queue.Len() function locks the lowLock before the
highLock. We therefore must lock the lowLock before the highLock.
Signed-off-by: Andrew Thornton art27@cantab.net