Skip to content
  1. Aug 27, 2021
  2. Aug 25, 2021
  3. Aug 24, 2021
  4. Aug 23, 2021
  5. Aug 22, 2021
  6. Aug 21, 2021
  7. Aug 19, 2021
  8. Aug 18, 2021
  9. Aug 16, 2021
  10. Aug 15, 2021
  11. Aug 14, 2021
  12. Aug 13, 2021
    • yzct12345's avatar
      threadsafe_queue: Fix deadlock · 0ba521e6
      yzct12345 authored
      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.
      0ba521e6
Loading