| ... | ... | @@ -55,7 +55,7 @@ pub const Loop = struct { |
| 55 | 55 | /// After initialization, call run(). |
| 56 | 56 | /// TODO copy elision / named return values so that the threads referencing *Loop |
| 57 | 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 | 59 | return self.initInternal(allocator, 1); |
| 60 | 60 | } |
| 61 | 61 | |
| ... | ... | @@ -64,7 +64,7 @@ pub const Loop = struct { |
| 64 | 64 | /// After initialization, call run(). |
| 65 | 65 | /// TODO copy elision / named return values so that the threads referencing *Loop |
| 66 | 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 | 68 | const core_count = try std.os.cpuCount(allocator); |
| 69 | 69 | return self.initInternal(allocator, core_count); |
| 70 | 70 | } |