core/sync/chan.select_raw: call try_select_raw with deprecation warning

Eventually select_raw should be a blocking select operation, but for now
we need to migrate people away.
This commit is contained in:
Jack Mordaunt
2025-06-11 12:32:13 -03:00
parent 96b91849a9
commit c1cd525d9d

View File

@@ -1254,6 +1254,11 @@ try_select_raw :: proc "odin" (recvs: []^Raw_Chan, sends: []^Raw_Chan, send_msgs
}
}
@(require_results, deprecated = "use try_select_raw")
select_raw :: proc "odin" (recvs: []^Raw_Chan, sends: []^Raw_Chan, send_msgs: []rawptr, recv_out: rawptr) -> (select_idx: int, status: Select_Status) #no_bounds_check {
return try_select_raw(recvs, sends, send_msgs, recv_out)
}
/*
`Raw_Queue` is a non-thread-safe queue implementation designed to store messages
of fixed size and alignment.