| author | |
| committer | |
| log | 148c887ace66ea829f7a7c45a2925532e7675e4f |
| tree | e3f5e941068c11f358bb5e82d3b5894139271be3 |
| parent | 50af87a9e32e39a948d1dffdc4041d88db3f5313 |
std.Mutex, which is struct initialized, is possibly defined to be std.SpinLock.1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/spinlock.zig+1-1| ... | ... | @@ -7,7 +7,7 @@ const std = @import("std.zig"); |
| 7 | 7 | const builtin = @import("builtin"); |
| 8 | 8 | |
| 9 | 9 | pub const SpinLock = struct { |
| 10 | state: State, | |
| 10 | state: State = .Unlocked, | |
| 11 | 11 | |
| 12 | 12 | const State = enum(u8) { |
| 13 | 13 | Unlocked, |