Thread

essentials offers the possibility to work with threads under both C++11 and C++03.

The following types map between the std and the boost implementation:

essentials

C++11

C++03

sxe::thread

std::thread

boost::thread

sxe::unique_lock

std::unique_lock

boost::unique_lock

sxe::mutex

std::mutex

boost::mutex

sxe::lock_guard

std::lock_guard

boost::lock_guard

sxe::condition_variable

std::condition_variable

boost::condition_variable

sxe::sleep_for

std::this_thread::sleep_for

boost::this_thread::sleep_for

sxe::atomic

std::atomic

boost::atomic