Opened 10 years ago

Closed 10 years ago

#8451 closed Bugs (fixed)

missing documented function 'boost::scoped_thread::joinable'

Reported by: record.nctu.cis91@… Owned by: viboes
Milestone: Boost 1.54.0 Component: thread
Version: Boost 1.53.0 Severity: Problem
Keywords: thread scoped_thread joinable Cc:

Description

I've found there is documented function: boost::scoped_thread::joinable.
But there is no such declaration/definition in the source (boost/thread/scoped_thread.hpp).

So the following code will produce compilation error saying 'joinable' is not a member of 'boost::scoped_thread<>'

#include <iostream>
#include <iomanip>

#include <boost/thread/scoped_thread.hpp>

int main() {
    boost::scoped_thread<> foo;

    std::cout << std::boolalpha << foo.joinable() << std::endl;

    return 0;
}

Attachments (1)

patchfile.patch (387 bytes ) - added by record.nctu.cis91@… 10 years ago.
add-joinable-definition-in-scoped-thread

Download all attachments as: .zip

Change History (4)

by record.nctu.cis91@…, 10 years ago

Attachment: patchfile.patch added

add-joinable-definition-in-scoped-thread

comment:1 by viboes, 10 years ago

Owner: changed from Anthony Williams to viboes
Status: newassigned

You are right. I will add it soon.

comment:2 by viboes, 10 years ago

Milestone: To Be DeterminedBoost 1.54.0

Committed revision [83949].

comment:3 by viboes, 10 years ago

Resolution: fixed
Status: assignedclosed

(In [83995]) Thread fix #8451.

Note: See TracTickets for help on using tickets.