authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-07-28 12:53:33-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-07-28 12:53:33-04:00
log05456eb275dd1d5aee6630ffdc743057db73872f
treefe32870eb71e859fef4e23ef1b725af784f61bb4
parentdd272d13161d7a7069af78669d891d280c65529f

make some functions in std.event.Loop public


1 files changed, 2 insertions(+), 2 deletions(-)

std/event/loop.zig+2-2
......@@ -55,7 +55,7 @@ pub const Loop = struct {
5555 /// After initialization, call run().
5656 /// TODO copy elision / named return values so that the threads referencing *Loop
5757 /// have the correct pointer value.
58 fn initSingleThreaded(self: *Loop, allocator: *mem.Allocator) !void {
58 pub fn initSingleThreaded(self: *Loop, allocator: *mem.Allocator) !void {
5959 return self.initInternal(allocator, 1);
6060 }
6161
......@@ -64,7 +64,7 @@ pub const Loop = struct {
6464 /// After initialization, call run().
6565 /// TODO copy elision / named return values so that the threads referencing *Loop
6666 /// have the correct pointer value.
67 fn initMultiThreaded(self: *Loop, allocator: *mem.Allocator) !void {
67 pub fn initMultiThreaded(self: *Loop, allocator: *mem.Allocator) !void {
6868 const core_count = try std.os.cpuCount(allocator);
6969 return self.initInternal(allocator, core_count);
7070 }