fixing fences implementation

This commit is contained in:
2025-11-09 02:19:02 +01:00
parent e89d1ff8d9
commit b4b88ac2db
4 changed files with 116 additions and 31 deletions
+2 -2
View File
@@ -76,8 +76,8 @@ pub fn wait(interface: *Interface, timeout: u64) VkError!void {
defer self.mutex.unlock();
if (timeout == std.math.maxInt(@TypeOf(timeout))) {
self.condition.wait(self.mutex);
self.condition.wait(&self.mutex);
} else {
self.condition.timedWait(self.mutex, timeout) catch return VkError.Timeout;
self.condition.timedWait(&self.mutex, timeout) catch return VkError.Timeout;
}
}