| ... | @@ -55,7 +55,7 @@ pub const Loop = struct { | ... | @@ -55,7 +55,7 @@ pub const Loop = struct { |
| 55 | /// After initialization, call run(). | 55 | /// After initialization, call run(). |
| 56 | /// TODO copy elision / named return values so that the threads referencing *Loop | 56 | /// TODO copy elision / named return values so that the threads referencing *Loop |
| 57 | /// have the correct pointer value. | 57 | /// have the correct pointer value. |
| 58 | fn initSingleThreaded(self: *Loop, allocator: *mem.Allocator) !void { | 58 | pub fn initSingleThreaded(self: *Loop, allocator: *mem.Allocator) !void { |
| 59 | return self.initInternal(allocator, 1); | 59 | return self.initInternal(allocator, 1); |
| 60 | } | 60 | } |
| 61 | | 61 | |
| ... | @@ -64,7 +64,7 @@ pub const Loop = struct { | ... | @@ -64,7 +64,7 @@ pub const Loop = struct { |
| 64 | /// After initialization, call run(). | 64 | /// After initialization, call run(). |
| 65 | /// TODO copy elision / named return values so that the threads referencing *Loop | 65 | /// TODO copy elision / named return values so that the threads referencing *Loop |
| 66 | /// have the correct pointer value. | 66 | /// have the correct pointer value. |
| 67 | fn initMultiThreaded(self: *Loop, allocator: *mem.Allocator) !void { | 67 | pub fn initMultiThreaded(self: *Loop, allocator: *mem.Allocator) !void { |
| 68 | const core_count = try std.os.cpuCount(allocator); | 68 | const core_count = try std.os.cpuCount(allocator); |
| 69 | return self.initInternal(allocator, core_count); | 69 | return self.initInternal(allocator, core_count); |
| 70 | } | 70 | } |