Fixed last commit

This commit is contained in:
Lorenzo Torres 2025-08-05 20:59:58 +02:00
parent b1bd949db5
commit 00d51fc970
8 changed files with 24 additions and 85 deletions

View file

@ -26,7 +26,7 @@ pub const Human = struct {
// TODO(ernesto): Move pool to its own file
pub const Pool = struct {
humans: std.MultiArrayList(Human),
resources: *Resources,
resources: Resources,
allocator: Allocator,
system_groups: std.ArrayList(SystemGroup),
sync_groups: std.ArrayList(SyncGroup),
@ -34,7 +34,7 @@ pub const Pool = struct {
wait_group: std.Thread.WaitGroup,
mutex: std.Thread.Mutex,
pub fn init(allocator: Allocator, resources: *Resources) !@This() {
pub fn init(allocator: Allocator, resources: Resources) !@This() {
var pool = @This(){
.humans = .{},
.resources = resources,