]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
common/condition_variable_debug: support mono_clock
authorKefu Chai <kchai@redhat.com>
Wed, 3 Feb 2021 16:33:36 +0000 (00:33 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 4 Feb 2021 11:26:52 +0000 (19:26 +0800)
commitdf4160114a1998abd2c72b9526207d66a6f03f9b
treebcee11870a11aacac47c12d9901027803ae8fc2b
parent58ba13f664283551069c8799c2951f5eb291d333
common/condition_variable_debug: support mono_clock

it's allowed by the C++ standard library, there is not reason that it's
forbidden by us.

and it's important to use mono_clock along with condition_variable to
address the issue when system lock is modified when we are waiting for
an event using condition_variable::wait_until() or
condition_variable::wait_for()

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/condition_variable_debug.h
src/mon/MonClient.cc