lib/0mq/poll_interruptible.rb
# Interrupt the running poll loop and permanently kill the Poll object
# This should be run once, when the Poll object is no longer needed.
# This should only be accessed from a thread other than the poll thread,
#   and only if the poll thread is running
# Use #cleanup instead when there is no poll loop thread running.
Interrupt the running poll loop and permanently kill the Poll object
This should be run once, when the Poll object is no longer needed.
This should only be accessed from a thread other than the poll thread,
and only if the poll thread is running
Use #cleanup instead when there is no poll loop thread running.
Interrupt the running poll loop and permanently kill the Poll object This should be run once when the Poll object is no longer needed . This should only be accessed from a thread other than the poll thread and only if the poll thread is running Use #cleanup instead when there is no poll loop thread running .
def kill
      return nil if @dead
      @int_lock_req.synchronize do
        @int_sock_req.send_array ["KILL"]
        @int_sock_req.recv_array
      end
      @int_sock_req.close
      @int_sock_push.close
      true
    end
def kill return nil if @dead @int_lock_req . synchronize do @int_sock_req . send_array [ "KILL" ] @int_sock_req . recv_array end @int_sock_req . close @int_sock_push . close true end
Interrupt the running poll loop and permanently kill the Poll object
This should be run once, when the Poll object is no longer needed.
Interrupt the running poll loop and permanently kill the Poll object This should be run once when the Poll object is no longer needed .