fn crashHandler(userdata: ?*anyopaque) void
userdata: ?*anyopaque
2057 2058 2059 2060 2061 2062 2063
fn crashHandler(userdata: ?*anyopaque) void { const t: *Threaded = @ptrCast(@alignCast(userdata)); _ = t; const thread = Thread.current orelse return; thread.status.store(.{ .cancelation = .canceled, .awaitable = .null }, .monotonic); thread.cancel_protection = .blocked; }