yzct12345 637ade3b25 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.
2023-06-30 12:15:52 +03:00
..
2023-04-21 10:14:55 +03:00
2020-03-29 16:14:36 +01:00
2023-04-27 07:38:28 +03:00
2023-04-27 07:38:28 +03:00
2023-06-17 21:24:20 +05:30
2023-04-21 10:14:55 +03:00
2022-11-15 11:20:35 +01:00
2023-04-21 10:14:55 +03:00
2022-11-15 11:20:35 +01:00
2022-11-15 11:20:35 +01:00
2023-06-17 21:24:20 +05:30
2020-01-15 19:58:33 -07:00
2022-11-22 22:52:37 +00:00
2021-01-03 02:39:41 +01:00
2023-04-27 07:38:28 +03:00
2023-04-27 07:38:28 +03:00
2023-04-27 07:38:28 +03:00
2023-04-27 07:38:28 +03:00
2022-05-18 00:05:40 -04:00