thread.h | thread.h | |||
---|---|---|---|---|
skipping to change at line 37 | skipping to change at line 37 | |||
/// | /// | |||
/// Run a function \a cb in separate thread | /// Run a function \a cb in separate thread | |||
/// | /// | |||
thread(function<void()> const &cb); | thread(function<void()> const &cb); | |||
~thread(); | ~thread(); | |||
/// | /// | |||
/// Join existing thread | /// Join existing thread | |||
/// | /// | |||
void join(); | void join(); | |||
/// | ||||
/// Get number of CPUS, returns 0 if the number is unknown | ||||
/// | ||||
static unsigned hardware_concurrency(); | ||||
private: | private: | |||
friend void *booster_thread_func(void *); | friend void *booster_thread_func(void *); | |||
struct data; | struct data; | |||
hold_ptr<data> d; | hold_ptr<data> d; | |||
}; | }; | |||
class condition_variable; | class condition_variable; | |||
class BOOSTER_API mutex : public noncopyable { | class BOOSTER_API mutex : public noncopyable { | |||
public: | public: | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 5 lines changed or added | |||