Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Boost.Thread conformance respect to n2798

Table 1. Boost.Thread conformance respect to n2798 30.2

Library Feature

C++0x feature

conformant compiler

NOT conformant compiler

Comment

class thread

rvalues+variadic

PARTIAL

PARTIAL

There are yet some features not implemented (See below)

void swap(thread& x, thread& y)

.

YES

YES

OK

void swap(thread&& x, thread& y)

rvalues

NO:missing

NO:missing

missing

void swap(thread& x, thread&& y)

rvalues

NO:missing

NO:missing

missing

thread::id this_thread::get_id()

.

YES

YES

OK

void this_thread::yield()

.

YES

YES

OK

void this_thread::void sleep_until(const chrono::time_point<Clock, Duration>&)

chrono

NO

PARTIAL

chrono not available on Boost

void this_thread::void void sleep_for(const chrono::duration<Rep, Period>&)

chrono

NO

PARTIAL

chrono not available on Boost


Table 2. Boost.Thread conformance respect to n2798 30.2.1

Library Feature

C++0x feature

conformant compiler

NOT conformant compiler

Comment

class thread::id

.

YES

YES

OK

typedef native_handle_type

.

YES

YES

OK

thread()

.

YES

YES

OK

thread(F&& f, Args&&... args)

rvalues+variadic

NO:missing

PARTIAL

miriad of overloadings (See below)

~thread()

.

YES

YES

OK

thread(const thread&) = delete

delete attr

NO

YES:private

Feature not yet available

thread(thread&&)

rvalue

YES

YES:move emulation

OK

thread& operator=(const thread&) = delete

delete attr

NO

YES:private

Feature not yet available

thread& operator=(thread&&)

rvalue

YES

YES:move emulation

OK

void swap(thread&&)

rvalue

PARTIAL:missing

PARTIAL:missing

missing

bool joinable()

.

YES

YES

OK

void join()

.

YES

YES

OK

void detach()

.

YES

YES

OK

is get_id()

.

YES

YES

OK

native_handle_type native_handle()

.

YES

YES

OK

static unsigned hardware_concurrency()

.

YES

YES

OK


Table 3. Boost.Thread features not included on n2798

Library Feature

Comment

void this_thread::interruption_point()

???

bool this_thread::interruption_requested()

???

bool this_thread::interruption_enabled()

???

class this_thread::disable_interruption

???

class this_thread::restore_interruption

???

void this_thread::sleep(TimeDuration const&)

related to this_thread::sleep_for

void this_thread::at_thread_exit(Callable)

???

void thread::thread(F& f, Args&... args)

partial emulation of thread(F&& f, Args&&... args)

void thread::swap(thread& x)

partial emulation of void swap(thread&& x)

bool thread::timed_join(const system_time&)

???

bool thread::timed_join(TimeDuration const&)

???

void thread::interrupt()

???

bool thread::operator==(const thread&)

backwards compatibility

bool thread::operator!=(const thread&)

backwards compatibility

void thread::yield()

backwards compatibility

void thread::sleep(const system_time&)

backwards compatibility and related to this_thread::sleep_until

class thread_group

???



PrevUpHomeNext