diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2023-10-31 12:03:03 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2023-10-31 12:03:03 -0400 |
commit | 6fb9a4640bad7bc88a52014ce23f7f8ad4a39c23 (patch) | |
tree | c39c9b4257cb6ef046836775fd64b9865c0e3af6 /indra/newview/llpanelvoiceeffect.h | |
parent | f71662225eadf1589f5331e763e02e0bb1b72137 (diff) |
DRTVWR-588: Try to make threadsafequeue timing more robust.
The test was coded to push (what's intended to be) the third entry with
timestamp (now + 200ms), then (what's intended to be) the second entry with
timestamp (now + 100ms).
The trouble is that it was re-querying "now" each time. On a slow CI host, the
clock might have advanced by more than 100ms between the first push and the
second -- meaning that the second push would actually have a _later_
timestamp, and thus, even with the queue sorting properly, fail the test's
order validation.
Capture the timestamp once, then add both time deltas to the same time point
to get the relative order right regardless of elapsed real time.
Diffstat (limited to 'indra/newview/llpanelvoiceeffect.h')
0 files changed, 0 insertions, 0 deletions