Boost logo

Boost :

From: Ruben Perez (rubenperez038_at_[hidden])
Date: 2023-12-20 18:35:10


>
>
> >
> > The code looks like below:
> > void myTask(const char *text)
> > {
> > sleep(5);
> > /*for(;;)
> > {
> > //sleep(1);
> > }*/
> > cout<<"text is "<<text<<endl;
> > // cout<<"out"<<endl;
> > }
>

Does the problem happen if you call any function
other than sleep? Doing a blocking sleep
in an async task is something to avoid in general.
It may be causing interferences with asio's
internal scheduler.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk