Commit 05456eb275

Andrew Kelley <superjoe30@gmail.com>
2018-07-28 18:53:33
make some functions in std.event.Loop public
1 parent dd272d1
Changed files (1)
std
event
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);
     }