mailing list of musl libc
 help / color / mirror / code / Atom feed
* src/thread/__timedwait.c: Clock type
@ 2019-05-13  1:36 zhaohang (F)
  2019-05-13 12:41 ` Rich Felker
  0 siblings, 1 reply; 3+ messages in thread
From: zhaohang (F) @ 2019-05-13  1:36 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 394 bytes --]

In the function _timedwait_cp, 'clk' indicates the type of clock used, CLOCK_REALTIME or CLOCK_MONOTONIC.

when we call __syscall_cp in this function, the fifth parameter 'top' is calculated based on the clock type.

However, the third parameter is not set according to the clock type. CLOCK_MONOTONIC is used by default.

Is this a bug? Or other considerations?

Thanks,

Zhao Hang

[-- Attachment #2: Type: text/html, Size: 3010 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-05-15 12:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-13  1:36 src/thread/__timedwait.c: Clock type zhaohang (F)
2019-05-13 12:41 ` Rich Felker
2019-05-15 12:27   ` 答复: [musl] " zhaohang (F)

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).