![]() |
От: | Аноним | |
Дата: | 03.05.11 12:07 | ||
Оценка: |
class ithread
{
public:
ithread::ithread(void)
:
_shutdown(false),
_thread(boost::bind(&_run, this))
{
};
void ithread::_run(void)
{
.............................................
_do_work();
};
void ithread::_do_work(void)
{
assert(_shutdown == false);
while( !_shutdown())
{
...............................
}
};
bool _shutdown;
..................................