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.