Sha256: 76e054baad0a0223d739f437bd20db4219abc95940f2d8e8872c8d9a9db986df

Contents?: true

Size: 476 Bytes

Versions: 11

Compression:

Stored size: 476 Bytes

Contents

# -*- encoding: binary -*-
# Copyright (C) 2013-2016 all contributors <yahns-public@yhbt.net>
# License: GPL-3.0+ (https://www.gnu.org/licenses/gpl-3.0.txt)
# frozen_string_literal: true
class Yahns::Sigevent < SleepyPenguin::EventFD # :nodoc:
  include Kgio::DefaultWaiters
  def self.new
    super(0, :CLOEXEC)
  end

  def sev_signal
    incr(1, true) # eventfd_write
  end

  def yahns_step
    value(true) # eventfd_read, we ignore this data
    :wait_readable
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
yahns-1.16.0 lib/yahns/sigevent_efd.rb
yahns-1.15.0 lib/yahns/sigevent_efd.rb
yahns-1.14.1 lib/yahns/sigevent_efd.rb
yahns-1.14.0 lib/yahns/sigevent_efd.rb
yahns-1.13.0 lib/yahns/sigevent_efd.rb
yahns-1.12.5 lib/yahns/sigevent_efd.rb
yahns-1.12.4 lib/yahns/sigevent_efd.rb
yahns-1.12.3 lib/yahns/sigevent_efd.rb
yahns-1.12.2 lib/yahns/sigevent_efd.rb
yahns-1.12.1 lib/yahns/sigevent_efd.rb
yahns-1.12.0 lib/yahns/sigevent_efd.rb