From 58ec73153081183653fc4e3b09e2b407a82c947e Mon Sep 17 00:00:00 2001 From: Karchnu Date: Mon, 6 Jul 2020 08:40:56 +0200 Subject: [PATCH] s/events_loop/wait_event/ --- src/ipc/context.cr | 2 +- src/ipc/lowlevel.cr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ipc/context.cr b/src/ipc/context.cr index fe94841..3aaecbc 100644 --- a/src/ipc/context.cr +++ b/src/ipc/context.cr @@ -43,7 +43,7 @@ class IPC::Context def wait_event(&block) : IPC::Event::Events | Exception event = LibIPC::Event.new - r = LibIPC.ipc_events_loop self.pointer, pointerof(event), pointerof(@timer) + r = LibIPC.ipc_wait_event self.pointer, pointerof(event), pointerof(@timer) if r.error_code != 0 m = String.new r.error_message.to_slice yield IPC::Exception.new "error waiting for a new event: #{m}" diff --git a/src/ipc/lowlevel.cr b/src/ipc/lowlevel.cr index f6dac44..40fe824 100644 --- a/src/ipc/lowlevel.cr +++ b/src/ipc/lowlevel.cr @@ -96,7 +96,7 @@ lib LibIPC fun ipc_ctx_free(Ctx*) # Void # Loop function. - fun ipc_events_loop(Ctx*, Event*, LibC::Int*) : IPCError + fun ipc_wait_event(Ctx*, Event*, LibC::Int*) : IPCError # Adding and removing file discriptors to read. fun ipc_add(Ctx*, Connection*, Pollfd*) : IPCError