[MacPorts] #68007: legacy-support: one of CLOCK_MONOTONIC_RAW and CLOCK_UPTIME_RAW is incorrect
MacPorts
noreply at macports.org
Tue Jan 21 21:49:46 UTC 2025
#68007: legacy-support: one of CLOCK_MONOTONIC_RAW and CLOCK_UPTIME_RAW is
incorrect
-----------------------------+--------------------------
Reporter: jmroot | Owner: cjones051073
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords:
Port: legacy-support |
-----------------------------+--------------------------
Comment (by fhgwright):
According to the documentation of the relevant functions,
`CLOCK_UPTIME_RAW` is correct, and `CLOCK_MONOTONIC_RAW` isn't. But the
normal (Apple) implementation of `CLOCK_MONOTONIC_RAW` depends on
`mach_continuous_time`, which is unavailable prior to 10.12. So something
more complicated would need to be done to implement `CLOCK_MONOTONIC_RAW`
correctly on older systems.
Meanwhile, the distinction only matters when using programs that keep
running across sleeps.
--
Ticket URL: <https://trac.macports.org/ticket/68007#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list