CppCMS
Public Member Functions | Static Public Member Functions | Friends
booster::thread Class Reference

the class that allows to start an execution thread More...

#include <booster/booster/thread.h>

Inheritance diagram for booster::thread:
booster::noncopyable

List of all members.

Public Member Functions

 thread (function< void()> const &cb)
void join ()
void detach ()

Static Public Member Functions

static unsigned hardware_concurrency ()

Friends

void * booster_thread_func (void *)

Detailed Description

the class that allows to start an execution thread


Constructor & Destructor Documentation

booster::thread::thread ( function< void()> const &  cb)

Run a function cb in separate thread


Member Function Documentation

Detach from the thread

static unsigned booster::thread::hardware_concurrency ( ) [static]

Get number of CPUS, returns 0 if the number is unknown

Join existing thread


The documentation for this class was generated from the following file: