Sha256: b4be30f68470f005b18f17037d643c415b7d164beae7f71452516fc0c88fb451
Contents?: true
Size: 637 Bytes
Versions: 13
Compression:
Stored size: 637 Bytes
Contents
# 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 # this represents a Yahns::Queue before its vivified. This only # lives in the parent process and should be clobbered after qc_vivify class Yahns::QueueEgg # :nodoc: attr_accessor :max_events, :worker_threads def initialize @max_events = 1 # 1 is good if worker_threads > 1 @worker_threads = 7 # any default is wrong for most apps... end # only call after forking def vivify(fdmap) queue = Yahns::Queue.new queue.fdmap = fdmap queue end end
Version data entries
13 entries across 13 versions & 1 rubygems