mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 16:26:08 +03:00
termio: writer needs a mut pointer
This commit is contained in:
@ -66,7 +66,7 @@ pub const Writer = union(enum) {
|
|||||||
mutex: ?*std.Thread.Mutex,
|
mutex: ?*std.Thread.Mutex,
|
||||||
) void {
|
) void {
|
||||||
switch (self.*) {
|
switch (self.*) {
|
||||||
.mailbox => |mb| send: {
|
.mailbox => |*mb| send: {
|
||||||
// Try to write to the mailbox with an instant timeout. This is the
|
// Try to write to the mailbox with an instant timeout. This is the
|
||||||
// fast path because we can queue without a lock.
|
// fast path because we can queue without a lock.
|
||||||
if (mb.mailbox.push(msg, .{ .instant = {} }) > 0) break :send;
|
if (mb.mailbox.push(msg, .{ .instant = {} }) > 0) break :send;
|
||||||
|
Reference in New Issue
Block a user