zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 05456eb275dd1d5aee6630ffdc743057db73872f (tree)
parent dd272d13161d7a7069af78669d891d280c65529f
Author: Andrew Kelley <superjoe30@gmail.com>
Date:   Sat, 28 Jul 2018 12:53:33 -0400

make some functions in std.event.Loop public

Diffstat:
Mstd/event/loop.zig | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/std/event/loop.zig b/std/event/loop.zig @@ -55,7 +55,7 @@ pub const Loop = struct { /// After initialization, call run(). /// TODO copy elision / named return values so that the threads referencing *Loop /// have the correct pointer value. - fn initSingleThreaded(self: *Loop, allocator: *mem.Allocator) !void { + pub fn initSingleThreaded(self: *Loop, allocator: *mem.Allocator) !void { return self.initInternal(allocator, 1); } @@ -64,7 +64,7 @@ pub const Loop = struct { /// After initialization, call run(). /// TODO copy elision / named return values so that the threads referencing *Loop /// have the correct pointer value. - fn initMultiThreaded(self: *Loop, allocator: *mem.Allocator) !void { + pub fn initMultiThreaded(self: *Loop, allocator: *mem.Allocator) !void { const core_count = try std.os.cpuCount(allocator); return self.initInternal(allocator, core_count); }