Archived
3
0

s/events_loop/wait_event/

This commit is contained in:
Karchnu 2020-07-06 08:40:56 +02:00
parent 8935db7126
commit 58ec731530
2 changed files with 2 additions and 2 deletions

View File

@ -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}"

View File

@ -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