Skip to content

Replace Time.now with new monotonic clock #256

Closed
@jdantonio

Description

@jdantonio

Monotonic clock support was added in PRs #253 and #254. There are numerous placers where we use Time.now in our code. We should replace as many of those as possible with monotonic clocks. The current clock_time implementation within Condition should be moved to the Concurrent namespace and made public. Each of the following classes should then be updated, if possible:

  • Agent (used for observation)
  • Condition
  • RubyThreadPoolExecutor
  • RubyThreadPoolWorker
  • TimerSet
  • IVar (used for observation)
  • ScheduledTask
  • [x] TimerTask (uses timer for scheduling and Time.now for observation

Metadata

Metadata

Assignees

Labels

enhancementAdding features, adding tests, improving documentation.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions