2
0
Эх сурвалжийг харах

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.
Jack Mordaunt 3 сар өмнө
parent
commit
c1cd525d9d

+ 5 - 0
core/sync/chan/chan.odin

@@ -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.