Is it correct that use REALTIME clock when calling gpr_cv_wait() in ev_epollex_linux.cc?

26 views
Skip to first unread message

Katsuhiro Yotsumoto

unread,
Feb 5, 2019, 9:42:39 PM2/5/19
to grpc.io
Hello, 

Is it correct that use REALTIME clock when calling gpr_cv_wait() in ev_epollex_linux.cc?

if (gpr_cv_wait(&worker->cv, &worker->pollable_obj->mu,
grpc_millis_to_timespec(deadline, GPR_CLOCK_REALTIME))) {


The log message of 'commit  54961bb9' is
Change the code to use MONOTONIC clocks when calling gpr_cv_wait (condition varialbes in linux
support MONOTONIC clock type)

So, I guess using MONOTONIC clock is correct.
 



Reply all
Reply to author
Forward
0 new messages