[Patch] C1X threading support
Poul-Henning Kamp
phk at phk.freebsd.dk
Thu Dec 22 17:08:54 UTC 2011
In message <86vcp8sfld.fsf at ds4.des.no>, =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= wr
ites:
>There is no such thing as a kernel in the C standard. All it knows
>about is the implementation and the program. The best solution would
>probably have been a timescale that counts the time elapsed since the
>start of the program.
That is requiring far more than necessary: All that is needed is
a monotonic timescale, such as the, precisely named, CLOCK_MONOTONIC
timescale POSIX introduced to solve the exact same kind of issues.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the freebsd-threads
mailing list