File: util.rb

package info (click to toggle)
ruby-concurrent 1.1.6%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 30,284 kB
  • sloc: ruby: 30,875; java: 6,117; javascript: 1,114; ansic: 288; makefile: 10; sh: 6
file content (16 lines) | stat: -rw-r--r-- 425 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module Concurrent

  # @!visibility private
  module ThreadSafe

    # @!visibility private
    module Util

      # TODO (pitr-ch 15-Oct-2016): migrate to Utility::NativeInteger
      FIXNUM_BIT_SIZE = (0.size * 8) - 2
      MAX_INT         = (2 ** FIXNUM_BIT_SIZE) - 1
      # TODO (pitr-ch 15-Oct-2016): migrate to Utility::ProcessorCounter
      CPU_COUNT       = 16 # is there a way to determine this?
    end
  end
end