update RwLock to use static initialization (#10838)

This commit is contained in:
billzez
2022-02-08 23:35:48 -05:00
committed by Andrew Kelley
parent 45d4e2f816
commit bf6af1963c
2 changed files with 14 additions and 64 deletions

View File

@@ -16,6 +16,7 @@ pub const StaticResetEvent = @import("Thread/StaticResetEvent.zig");
pub const Mutex = @import("Thread/Mutex.zig");
pub const Semaphore = @import("Thread/Semaphore.zig");
pub const Condition = @import("Thread/Condition.zig");
pub const RwLock = @import("Thread/RwLock.zig");
pub const use_pthreads = target.os.tag != .windows and target.os.tag != .wasi and builtin.link_libc;
const is_gnu = target.abi.isGnu();