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.

SpinLock

pthread.SpinLock
const SpinLock = enum(c.pthread_spinlock_t)

File

lib/c/pthread.zig:18

Code

const SpinLock = enum(c.pthread_spinlock_t) {
    unlocked = if (builtin.target.isMinGW()) -1 else 0,
    locked = if (builtin.target.isMinGW()) 0 else @backingInt(c.E.BUSY),
}