s/events_loop/wait_event/
parent
8935db7126
commit
58ec731530
|
@ -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}"
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in New Issue