diff options
Diffstat (limited to 'vendor/libghostty-vt/src/font/library.zig')
| -rw-r--r-- | vendor/libghostty-vt/src/font/library.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/libghostty-vt/src/font/library.zig b/vendor/libghostty-vt/src/font/library.zig index 56946343..49c2e880 100644 --- a/vendor/libghostty-vt/src/font/library.zig +++ b/vendor/libghostty-vt/src/font/library.zig @@ -30,7 +30,7 @@ pub const FreetypeLibrary = struct { /// Mutex to be held any time the library is /// being used to create or destroy a face. - mutex: *std.Thread.Mutex, + mutex: *std.Io.Mutex, pub const InitError = freetype.Error || Allocator.Error; @@ -38,8 +38,8 @@ pub const FreetypeLibrary = struct { const lib = try freetype.Library.init(); errdefer lib.deinit(); - const mutex = try alloc.create(std.Thread.Mutex); - mutex.* = .{}; + const mutex = try alloc.create(std.Io.Mutex); + mutex.* = .init; return Library{ .lib = lib, .alloc = alloc, .mutex = mutex }; } |
