authorgravatar for mail@linusgroh.deLinus Groh <mail@linusgroh.de> 2023-05-20 22:46:19+01:00
committergravatar for mail@linusgroh.deLinus Groh <mail@linusgroh.de> 2023-05-25 20:17:07+01:00
loge96de1b63688d3a92932fe4afdfe37dbe2315f53
treef8e3e0f623edafac04a45f69e99ef3f004374d13
parent1f57043a21937baaafe8f0083a633bc13d0ff704

std.event.loop: Rename Loop.Request.Finish enum values to snake case


1 files changed, 17 insertions(+), 17 deletions(-)

lib/std/event/loop.zig+17-17
...@@ -169,7 +169,7 @@ pub const Loop = struct {...@@ -169,7 +169,7 @@ pub const Loop = struct {
169 .handle = undefined,169 .handle = undefined,
170 .overlapped = ResumeNode.overlapped_init,170 .overlapped = ResumeNode.overlapped_init,
171 },171 },
172 .fs_end_request = .{ .data = .{ .msg = .end, .finish = .NoAction } },172 .fs_end_request = .{ .data = .{ .msg = .end, .finish = .no_action } },
173 .fs_queue = std.atomic.Queue(Request).init(),173 .fs_queue = std.atomic.Queue(Request).init(),
174 .fs_thread = undefined,174 .fs_thread = undefined,
175 .fs_thread_wakeup = .{},175 .fs_thread_wakeup = .{},
...@@ -1019,7 +1019,7 @@ pub const Loop = struct {...@@ -1019,7 +1019,7 @@ pub const Loop = struct {
1019 .result = undefined,1019 .result = undefined,
1020 },1020 },
1021 },1021 },
1022 .finish = .{ .TickNode = .{ .data = @frame() } },1022 .finish = .{ .tick_node = .{ .data = @frame() } },
1023 },1023 },
1024 };1024 };
1025 suspend {1025 suspend {
...@@ -1041,7 +1041,7 @@ pub const Loop = struct {...@@ -1041,7 +1041,7 @@ pub const Loop = struct {
1041 .result = undefined,1041 .result = undefined,
1042 },1042 },
1043 },1043 },
1044 .finish = .{ .TickNode = .{ .data = @frame() } },1044 .finish = .{ .tick_node = .{ .data = @frame() } },
1045 },1045 },
1046 };1046 };
1047 suspend {1047 suspend {
...@@ -1055,7 +1055,7 @@ pub const Loop = struct {...@@ -1055,7 +1055,7 @@ pub const Loop = struct {
1055 var req_node = Request.Node{1055 var req_node = Request.Node{
1056 .data = .{1056 .data = .{
1057 .msg = .{ .close = .{ .fd = fd } },1057 .msg = .{ .close = .{ .fd = fd } },
1058 .finish = .{ .TickNode = .{ .data = @frame() } },1058 .finish = .{ .tick_node = .{ .data = @frame() } },
1059 },1059 },
1060 };1060 };
1061 suspend {1061 suspend {
...@@ -1076,7 +1076,7 @@ pub const Loop = struct {...@@ -1076,7 +1076,7 @@ pub const Loop = struct {
1076 .result = undefined,1076 .result = undefined,
1077 },1077 },
1078 },1078 },
1079 .finish = .{ .TickNode = .{ .data = @frame() } },1079 .finish = .{ .tick_node = .{ .data = @frame() } },
1080 },1080 },
1081 };1081 };
1082 suspend {1082 suspend {
...@@ -1109,7 +1109,7 @@ pub const Loop = struct {...@@ -1109,7 +1109,7 @@ pub const Loop = struct {
1109 .result = undefined,1109 .result = undefined,
1110 },1110 },
1111 },1111 },
1112 .finish = .{ .TickNode = .{ .data = @frame() } },1112 .finish = .{ .tick_node = .{ .data = @frame() } },
1113 },1113 },
1114 };1114 };
1115 suspend {1115 suspend {
...@@ -1143,7 +1143,7 @@ pub const Loop = struct {...@@ -1143,7 +1143,7 @@ pub const Loop = struct {
1143 .result = undefined,1143 .result = undefined,
1144 },1144 },
1145 },1145 },
1146 .finish = .{ .TickNode = .{ .data = @frame() } },1146 .finish = .{ .tick_node = .{ .data = @frame() } },
1147 },1147 },
1148 };1148 };
1149 suspend {1149 suspend {
...@@ -1177,7 +1177,7 @@ pub const Loop = struct {...@@ -1177,7 +1177,7 @@ pub const Loop = struct {
1177 .result = undefined,1177 .result = undefined,
1178 },1178 },
1179 },1179 },
1180 .finish = .{ .TickNode = .{ .data = @frame() } },1180 .finish = .{ .tick_node = .{ .data = @frame() } },
1181 },1181 },
1182 };1182 };
1183 suspend {1183 suspend {
...@@ -1210,7 +1210,7 @@ pub const Loop = struct {...@@ -1210,7 +1210,7 @@ pub const Loop = struct {
1210 .result = undefined,1210 .result = undefined,
1211 },1211 },
1212 },1212 },
1213 .finish = .{ .TickNode = .{ .data = @frame() } },1213 .finish = .{ .tick_node = .{ .data = @frame() } },
1214 },1214 },
1215 };1215 };
1216 suspend {1216 suspend {
...@@ -1243,7 +1243,7 @@ pub const Loop = struct {...@@ -1243,7 +1243,7 @@ pub const Loop = struct {
1243 .result = undefined,1243 .result = undefined,
1244 },1244 },
1245 },1245 },
1246 .finish = .{ .TickNode = .{ .data = @frame() } },1246 .finish = .{ .tick_node = .{ .data = @frame() } },
1247 },1247 },
1248 };1248 };
1249 suspend {1249 suspend {
...@@ -1277,7 +1277,7 @@ pub const Loop = struct {...@@ -1277,7 +1277,7 @@ pub const Loop = struct {
1277 .result = undefined,1277 .result = undefined,
1278 },1278 },
1279 },1279 },
1280 .finish = .{ .TickNode = .{ .data = @frame() } },1280 .finish = .{ .tick_node = .{ .data = @frame() } },
1281 },1281 },
1282 };1282 };
1283 suspend {1283 suspend {
...@@ -1311,7 +1311,7 @@ pub const Loop = struct {...@@ -1311,7 +1311,7 @@ pub const Loop = struct {
1311 .result = undefined,1311 .result = undefined,
1312 },1312 },
1313 },1313 },
1314 .finish = .{ .TickNode = .{ .data = @frame() } },1314 .finish = .{ .tick_node = .{ .data = @frame() } },
1315 },1315 },
1316 };1316 };
1317 suspend {1317 suspend {
...@@ -1391,7 +1391,7 @@ pub const Loop = struct {...@@ -1391,7 +1391,7 @@ pub const Loop = struct {
1391 .result = undefined,1391 .result = undefined,
1392 },1392 },
1393 },1393 },
1394 .finish = .{ .TickNode = .{ .data = @frame() } },1394 .finish = .{ .tick_node = .{ .data = @frame() } },
1395 },1395 },
1396 };1396 };
1397 suspend {1397 suspend {
...@@ -1549,8 +1549,8 @@ pub const Loop = struct {...@@ -1549,8 +1549,8 @@ pub const Loop = struct {
1549 .close => |*msg| os.close(msg.fd),1549 .close => |*msg| os.close(msg.fd),
1550 }1550 }
1551 switch (node.data.finish) {1551 switch (node.data.finish) {
1552 .TickNode => |*tick_node| self.onNextTick(tick_node),1552 .tick_node => |*tick_node| self.onNextTick(tick_node),
1553 .NoAction => {},1553 .no_action => {},
1554 }1554 }
1555 self.finishOneEvent();1555 self.finishOneEvent();
1556 }1556 }
...@@ -1586,8 +1586,8 @@ pub const Loop = struct {...@@ -1586,8 +1586,8 @@ pub const Loop = struct {
1586 pub const Node = std.atomic.Queue(Request).Node;1586 pub const Node = std.atomic.Queue(Request).Node;
15871587
1588 pub const Finish = union(enum) {1588 pub const Finish = union(enum) {
1589 TickNode: Loop.NextTickNode,1589 tick_node: Loop.NextTickNode,
1590 NoAction,1590 no_action,
1591 };1591 };
15921592
1593 pub const Msg = union(enum) {1593 pub const Msg = union(enum) {