diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2021-10-06 12:54:29 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2021-10-06 12:54:29 -0400 |
commit | cf70766b4504f7ee745822926c526ed9c86c9339 (patch) | |
tree | ee243808c75413d3d564cc9636d55783756f640f /scripts/messages | |
parent | 955b967623983cb50ba09f7b82e5f01f2c6bcebb (diff) |
SL-16024: Fix ThreadSafeSchedule::tryPopFor(), tryPopUntil().
ThreadSafeSchedule::tryPopUntil() (and therefore tryPopFor()) was simply
delegating to LLThreadSafeQueue::tryPopUntil(), with an adjusted timeout since
we want to wake up as soon as the head item, if any, becomes ready. But then
we have to loop back to retry the pop to actually deal with that head item.
In addition, ThreadSafeSchedule::popWithTime() was spinning rather than
properly blocking on a timed condition variable. Fixed.
Diffstat (limited to 'scripts/messages')
0 files changed, 0 insertions, 0 deletions