Opened 10 years ago

Closed 10 years ago

#7808 closed Bugs (fixed)

[Thread] Incorrect description of effects for this_thread::sleep_for and this_thread::sleep_until

Reported by: Yasutaka ATARASHI <atara-y@…> Owned by: viboes
Milestone: Boost 1.53.0 Component: thread
Version: Boost Development Trunk Severity: Cosmetic
Keywords: Cc:

Description

In trunk/libs/thread/doc/thread_ref.qbk,

effects of this_thread::sleep_until is described as:

Suspends the current thread until the time period specified by rel_time has elapsed or the time point specified by abs_time has been reached.

while effects of this_thread::sleep_for is described as:

Suspends the current thread until the time point specified by abs_time has been reached.

rel_time in sleep_until is extra, that is description for sleep, and description of sleep_for should be for sleep_until.

Attachments (1)

7808.patch (930 bytes ) - added by viboes 10 years ago.
Fix.

Download all attachments as: .zip

Change History (6)

comment:1 by viboes, 10 years ago

Milestone: To Be DeterminedBoost 1.53.0
Owner: changed from Matias Capeletto to viboes
Status: newassigned

by viboes, 10 years ago

Attachment: 7808.patch added

Fix.

comment:2 by viboes, 10 years ago

Thanks for this report. See the attached patch.

comment:3 by viboes, 10 years ago

Component: Documentationthread

comment:4 by Yasutaka ATARASHI <atara-y@…>, 10 years ago

Thank you for the fast response.

For sleep_until,

the time period specified or

could be removed?

comment:5 by viboes, 10 years ago

Resolution: fixed
Status: assignedclosed

Committed merge from trunk [82159].

Note: See TracTickets for help on using tickets.