thread.hpp

C++11 thread drop in replacement.

struct riot::thread_data

Holds context data for the thread.

thread_data()
struct riot::thread_data_deleter

This deleter prevents our thread data from being destroyed if the thread object is destroyed before the thread had a chance to run.

void operator()(thread_data * ptr)

Called by the deleter of a thread object to manage the lifetime of the thread internal management data.