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 {...@@ -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 *Loop56 /// 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 }
6161
...@@ -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 *Loop65 /// 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 }