Function lock [src]

Prototype

pub fn lock(rwl: *PthreadRwLock) void

Parameters

rwl: *PthreadRwLock

Source

pub fn lock(rwl: *PthreadRwLock) void { const rc = std.c.pthread_rwlock_wrlock(&rwl.rwlock); assert(rc == .SUCCESS); }