I have a multithreaded program. At the code below, the first cerr gets printed, but cout at the end doesn't get printed. When I move the cout line before the pthread_exit() it works but I get plenty of memory errors. I tried cout.flush() but it didn't work.
> At the code below, the first cerr gets printed, but cout at the end doesn't get printed.
there is no cout in your code
¿what do you think pthread_exit() does?