yzct12345 0ba521e634
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.
2021-08-13 19:22:51 +00:00
..
2021-07-22 21:51:35 -04:00
2021-08-05 17:46:22 +00:00
2021-02-18 00:45:17 -03:00
2020-12-29 14:33:41 -05:00
2018-10-02 16:04:10 +02:00
2021-03-10 20:37:56 +00:00
2020-10-21 22:14:23 -04:00
2021-02-28 17:25:31 -05:00
2021-06-11 17:27:06 +02:00
2020-08-26 02:32:32 -04:00
2021-08-11 17:12:14 -04:00
2020-06-27 18:20:06 -04:00
2020-11-05 10:07:16 -05:00
2020-10-26 23:07:36 -04:00
2021-01-02 10:23:41 -05:00
2021-07-08 19:03:19 -03:00