Function release [src]

Prototype

pub fn release(lock: *Lock) void

Parameters

lock: *Lock

Source

pub fn release(lock: *Lock) void { if (builtin.os.tag == .windows) { // Windows does not guarantee that locks are immediately unlocked when // the file handle is closed. See LockFileEx documentation. lock.manifest_file.unlock(); } lock.manifest_file.close(); lock.* = undefined; }