Commit 3d77e1b3 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

LifoSem::try_wait

Summary: [Folly] `LifoSem::try_wait`, a synonym for `tryWait`.

Reviewed By: magedm

Differential Revision: D14538142

fbshipit-source-id: 5989223a36cddafca108ebdbafc2b17e8dda5964
parent 053c2e89
......@@ -475,6 +475,10 @@ struct LifoSemBase {
FOLLY_SAFE_DCHECK(res, "infinity time has passed");
}
bool try_wait() {
return tryWait();
}
template <typename Rep, typename Period>
bool try_wait_for(const std::chrono::duration<Rep, Period>& timeout) {
return try_wait_until(timeout + std::chrono::steady_clock::now());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment