Fixes bugs found by Sonarcloud and Coverity
This commit is contained in:
parent
0c22f5a447
commit
1f209bfc41
10 changed files with 25 additions and 13 deletions
|
|
@ -268,7 +268,10 @@ void MessageQueue::flush() {
|
|||
//using reverse locking strategy
|
||||
_THREAD_SAFE_LOCK_
|
||||
|
||||
ERR_FAIL_COND(flushing); //already flushing, you did something odd
|
||||
if (flushing) {
|
||||
_THREAD_SAFE_UNLOCK_
|
||||
ERR_FAIL_COND(flushing); //already flushing, you did something odd
|
||||
}
|
||||
flushing = true;
|
||||
|
||||
while (read_pos < buffer_end) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue