Files
Odin/core/sync
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-06-12 16:14:52 -03:00
2024-07-30 19:13:35 +11:00
2025-01-10 06:28:57 +01:00
2024-12-05 20:05:19 +01:00
2025-06-03 09:07:38 -04:00
2024-09-11 08:39:23 -04:00