Opened 7 years ago
Closed 7 years ago
#11688 closed Bugs (fixed)
thread::try_join_until: Avoid busy wait if system clock changes
Reported by: | Owned by: | viboes | |
---|---|---|---|
Milestone: | Boost 1.60.0 | Component: | thread |
Version: | Boost 1.58.0 | Severity: | Problem |
Keywords: | Cc: |
Description
If system clock changes by an amount larger than the outstanding duration according to the supplied clock then the code loops around again but continues to pass a time point based on the original value of the system clock to the system_clock variant of try_join.
If we're going to recalculate the outstanding duration in the loop then it is necessary to get the current time according to the system clock to use with this duration.
(Originally raised as https://github.com/boostorg/thread/pull/58 )
Attachments (1)
Change History (4)
by , 7 years ago
Attachment: | 0001-thread-try_join_until-Avoid-busy-wait-if-system-cloc.patch added |
---|
comment:1 by , 7 years ago
Milestone: | To Be Determined → Boost 1.60.0 |
---|
comment:2 by , 7 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Patch to fix problem.