Handle max deadlines in Futex
authorYedidya Feldblum <yfeldblum@fb.com>
Fri, 19 Jan 2018 19:47:46 +0000 (11:47 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 19 Jan 2018 19:51:29 +0000 (11:51 -0800)
commit9938799b6d3d06c444e3fb03ca6a780e3b6a5f8c
tree15bf1489c417f1dd13206e2a759cb2ec3818119d
parent20808864dfde991fd740e6caefe632d4bf244d69
Handle max deadlines in Futex

Summary:
[Folly] Handle max deadlines in `Futex`.

Some of the synchronization code internally treats deadlines which are equivalent to `time_point::max()` for the same clock as a sentinel value indicating a deadline at infinity, or equivalently the lack of a deadline.

Care must be taken when converting between clocks to translate a deadline at infinity for one clock to the deadline at infinity for the other clock.

Reviewed By: nbronson

Differential Revision: D6720021

fbshipit-source-id: cfc230dd2d8db55297385a4afcb6d87ae4221840
folly/detail/Futex.h