summaryrefslogtreecommitdiff
path: root/src/common/logging/backend.h
diff options
context:
space:
mode:
authorGravatar yzct123452021-08-13 19:22:51 +0000
committerGravatar GitHub2021-08-13 19:22:51 +0000
commit0ba521e63455d2222b61bde70abfe4fed43ee117 (patch)
treedbb2d74fb6977b22e4cef4bd3658ba2f8060ae18 /src/common/logging/backend.h
parentMerge pull request #6862 from german77/badsdl (diff)
downloadyuzu-0ba521e63455d2222b61bde70abfe4fed43ee117.tar.gz
yuzu-0ba521e63455d2222b61bde70abfe4fed43ee117.tar.xz
yuzu-0ba521e63455d2222b61bde70abfe4fed43ee117.zip
threadsafe_queue: Fix deadlock
This fixes a lost wakeup in SPSCQueue. If the reader is in just the right position, the writer's notification will be lost and this will be a problem if the writer then does something to wait on the reader. This was discovered to affect my upcoming stacktrace PR. I don't think any performance decrease will be noticeable because an uncontended mutex is smart enough to skip the syscall. This PR might also resolve some rare deadlocks but I don't know of any examples.
Diffstat (limited to 'src/common/logging/backend.h')
0 files changed, 0 insertions, 0 deletions