Skip to content

Timed waits use the wall clock on POSIX #12

Closed

Description

@dimensionscape

Lock and semaphore timeouts compute their deadline from gettimeofday (Thread.cpp, Thread.h, CountingSemaphore.posix.cpp), so changing the system clock stretches or cuts a wait short. They should use CLOCK_MONOTONIC.

Upstream: HaxeFoundation/hxcpp#887

Activity

  1. added 5 commits that reference this issue on Oct 15, 2026
    0a5a0ce
    9aee2db
    e24561e
    1474850
    7578160
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions