I'm trying to multithread two functions but when I try to build the code I get the mentioned errors, the code I have is
InitializeThreads();
}
fn InitializeThreads() void {
const physicsThread = try std.Thread.spawn(.{}, PhysicsUpdate, null);
_ = physicsThread;
const inputThread = try std.Thread.spawn(.{}, InputUpdate(), null);
_ = inputThread;
}
fn PostUpdate() void {}
fn PhysicsUpdate() void {}