Modify

Ticket #7808 (closed Bugs: fixed)

Opened 16 months ago

Last modified 16 months ago

[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

7808.patch Download (930 bytes) - added by viboes 16 months ago.
Fix.

Change History

comment:1 Changed 16 months ago by viboes

  • Owner changed from matias to viboes
  • Status changed from new to assigned
  • Milestone changed from To Be Determined to Boost 1.53.0

Changed 16 months ago by viboes

Fix.

comment:2 Changed 16 months ago by viboes

Thanks for this report. See the attached patch.

comment:3 Changed 16 months ago by viboes

  • Component changed from Documentation to thread

comment:4 Changed 16 months ago by Yasutaka ATARASHI <atara-y@…>

Thank you for the fast response.

For sleep_until,

the time period specified or

could be removed?

comment:5 Changed 16 months ago by viboes

  • Status changed from assigned to closed
  • Resolution set to fixed

Committed merge from trunk [82159].

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.