Sha256: 5b73c10e8f9f1766680aadba89e7337ea8b0cc21308181dee1d96b2d93584b1e

Contents?: true

Size: 258 Bytes

Versions: 2

Compression:

Stored size: 258 Bytes

Contents

# Helper for default threading values.
require 'concurrent'

module Xcflushd
  module Threading
    def self.default_threads_value
      cpus = Concurrent.processor_count
      # default thread pool minimum is zero
      return 0, cpus * 4
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
xcflushd-1.0.0 lib/xcflushd/threading.rb
xcflushd-1.0.0.rc2 lib/xcflushd/threading.rb