Language
C++
Compiler
gcc 8.2.0
Options
Optimization
Boost 1.69.0
C++2a(GNU)
no pedantic
Raw compiler options
-lboost_system
-lboost_coroutine
-DBOOST_COROUTINES_NO_DEPRECATION_WARNING=1
$ g++ prog.cc -O2 -march=native -I/opt/wandbox/boost-1.69.0/gcc-8.2.0/include -std=gnu++2a -lboost_system -lboost_coroutine -DBOOST_COROUTINES_NO_DEPRECATION_WARNING=1
Spawned
After first sleep
After second sleep
T1 complete
T2 complete
Exit Code:
0