Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

notifyUpdate

Thread-safe. Triggers updates to be sent to connected WebSocket clients; see update_id.

WebServer.notifyUpdate
pub fn notifyUpdate(ws: *WebServer) void

File

lib/compiler/Maker/WebServer.zig:71

Code

pub fn notifyUpdate(ws: *WebServer) void {
    const io = ws.graph.io;
    _ = ws.update_id.rmw(.Add, 1, .release);
    io.futexWake(u32, &ws.update_id.raw, 16);
}