Function run [src]

Prototype

pub fn run(ctx: *@This()) !void

Parameters

ctx: *@This()

Source

pub fn run(ctx: *@This()) !void { // Wait for the main thread to have set the thread field in the context. ctx.start_wait_event.wait(); switch (native_os) { .windows => testThreadName(&ctx.thread) catch |err| switch (err) { error.Unsupported => return error.SkipZigTest, else => return err, }, else => try testThreadName(&ctx.thread), } // Signal our test is done ctx.test_done_event.set(); // wait for the thread to property exit ctx.thread_done_event.wait(); }