Fixed last commit
This commit is contained in:
parent
b1bd949db5
commit
00d51fc970
8 changed files with 24 additions and 85 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue