Skip to documentation
SLOP

tiny.simd.setThreadAffinity

Reference tiny.simd setThreadAffinity

Defined in tiny.simd.

Called byCallsNo direct callstiny.simdpinThreadToLogicalProcessortiny.simdsetThreadAffinity
Static calls · unresolved targets: 0 · external targets: 3.

Source

Source: lib/simd/src/topology/native.zig:69

zig
pub fn setThreadAffinity(lps: *const topology.LogicalProcessorSet) bool {    if (comptime builtin.target.os.tag == .linux) {        return linux.setThreadAffinity(lps);    } else if (comptime builtin.target.os.tag == .windows) {        return windows.setThreadAffinity(lps);    } else if (comptime builtin.target.os.tag == .freebsd) {        return freebsd.setThreadAffinity(lps);    } else {        return false;    }}

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

zig
pub const setThreadAffinity = topology.setThreadAffinity;

Also reachable as

topology.setThreadAffinity.

Audit

Definitions1
Public names2
Members0
Version26.7.0
Revisiondaab053ee433