commit | 7e4a557f64544876b185705c29529939d00fffbb | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sun Apr 11 15:34:25 2021 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Sun Apr 11 23:47:54 2021 +0200 |
tree | 7c940033adf1e3fd28df18c3c657dd2f98ad2cf1 | |
parent | 70cb3026a8d76e7b9c32ce95c4e9b5f21f3e44da [diff] |
MINOR: time: change the global timeval and the the global tick at once Instead of using two CAS loops, better compute the two units simultaneously and update them at once. There is no guarantee that the update will be synchronous, but we don't care, what matters is that both are monotonically updated and that global_now_ms always follows the last known value of global_now.