From c364ddbaf01ff542e995d81c4ae4db6f3537b3df Mon Sep 17 00:00:00 2001 From: Matthew Date: Sun, 30 Nov 2025 18:06:18 +1100 Subject: [PATCH] make change to TicketMut Unlock --- platform.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform.d b/platform.d index c7e3762..59d2e55 100644 --- a/platform.d +++ b/platform.d @@ -281,10 +281,10 @@ Lock(TicketMut* mut) while (ticket != volatileLoad(&mut.next_ticket)) {} } -void +u64 Unlock(TicketMut* mut) { - atomicFetchAdd!(MemoryOrder.rel, u64)(mut.next_ticket, 1); + return atomicFetchAdd!(MemoryOrder.rel, u64)(mut.next_ticket, 1); } __gshared const DNode!(SysMessage) g_sys_message;