Sha256: 8d35a011d61141fe748753a0782f2f6e87e8dc03877df265d8a75ef75a56e3b7

Contents?: true

Size: 445 Bytes

Versions: 2

Compression:

Stored size: 445 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:
  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

2 entries across 2 versions & 1 rubygems

Version Path
yahns-1.18.0 lib/yahns/sigevent_efd.rb
yahns-1.17.0 lib/yahns/sigevent_efd.rb