From c99517181ec15167710e2f3125b6ef7607e76526 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Sat, 3 Feb 2024 10:05:42 -0600 Subject: [PATCH] queue: remove useless defer --- src/queue.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/queue.zig b/src/queue.zig index 32616cd..8bf42b8 100644 --- a/src/queue.zig +++ b/src/queue.zig @@ -34,7 +34,7 @@ pub fn Queue( } if (self.isFull()) { // If we are full, wake up the push - defer Futex.wake(&self.futex, 1); + Futex.wake(&self.futex, 1); } const i = self.read_index; self.read_index += 1; @@ -53,7 +53,7 @@ pub fn Queue( self.mutex.lock(); } if (self.isEmpty()) { - defer Futex.wake(&self.futex, 1); + Futex.wake(&self.futex, 1); } const i = self.write_index; self.write_index += 1;