Files
Odin/core
Jack Mordaunt d5b7302ac0 core/sync.try_select_raw: fix TOCTOU
Fixes a TOCTOU where the channel could be used between the call to
can_{recv,send} and {recv,send} causing an unexpected blocking
operation.

To do this we use the non-blocking try_{recv,send} and retry the check
in a loop. This guarantees non-blocking select behaviour, at the cost of
spinning if the input channels are highly contended.

Signed-off-by: Jack Mordaunt <jackmordaunt.dev@gmail.com>
2025-06-12 16:14:52 -03:00
..
2025-05-04 15:48:26 +10:00
2025-06-09 15:09:04 +02:00
2025-05-08 13:23:22 +01:00
2024-02-08 15:15:16 +00:00
2025-06-06 10:42:34 +02:00
2025-06-12 16:14:52 -03:00
2025-05-26 14:48:45 -04:00
2025-06-12 17:09:33 +02:00
2025-06-08 17:03:43 -07:00