Obsolete
/
ipc.cr-old
Archived
3
0
Fork 0
poll
Karchnu 2020-07-13 14:16:25 +02:00
parent df269e4423
commit b5d8c5a6b1
1 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,7 @@
class IPC::Context
property base_timer : Int32 = LibIPC::INFTIM
property timer : Int32 = LibIPC::INFTIM
getter context : LibIPC::Ctx
getter context : LibIPC::Ctx
def initialize
@context = LibIPC::Ctx.new
@ -142,6 +142,7 @@ class IPC::Context
m = String.new r.error_message.to_slice
raise Exception.new "cannot correctly close the connection: #{m}"
end
LibIPC.ipc_ctx_free(self.pointer)
@closed = true
end