Skip to documentation
SLOP

tiny.simd.callWithSpin

Reference tiny.simd callWithSpin

Defined in thread.spin.

Called byCallsprivate sourcelib.simd.src.thread.pool.ThreadPoolwaitForWorkprivate sourcelib.simd.src.thread.pool.ThreadPoolwaitForWorkerstest sourcelib.simd.src.thread.spintest: Highway detected spin policy co...private sourcelib.simd.src.thread.spinhaveMonitorXprivate sourcelib.simd.src.thread.spinhaveUMonitorthread.spincallWithSpin
Static calls · unresolved targets: 1 · external targets: 0.

Source

Source: lib/simd/src/thread/spin.zig:194

zig
pub fn callWithSpin(    spin_type: SpinType,    context: anytype,    comptime call: anytype,) void {    switch (spin_type) {        .monitor_x => if (comptime haveMonitorX())            call(context, SpinMonitorX{})        else            call(context, SpinPause{}),        .u_monitor => if (comptime haveUMonitor())            call(context, SpinUMonitor{})        else            call(context, SpinPause{}),        .pause => call(context, SpinPause{}),    }}

Source: lib/simd/src/root.zig:126

zig
pub const callWithSpin = thread.callWithSpin;

Also reachable as

thread.callWithSpin.

Audit

Definitions1
Public names3
Members0
Version26.7.0
Revisiondaab053ee433