Language
C++
Compiler
clang HEAD 8.0.0 (https://github.com/llvm-mirror/clang.git 5c15d24300178368feee2ade45014adc43f54129) (https://github.com/llvm-mirror/llvm.git 1b0e0069366620051dbfa9f91820da07811cbbaa)
Options
Warnings
Don't Use Boost
C++2a
no pedantic
Raw compiler options
-fcoroutines-ts
$ clang++ prog.cc -Wall -Wextra -std=c++2a -fcoroutines-ts
Initial code
START #############################################
THREAD:---MAIN--- InCurrentThread
After function call ###############################
THREAD:---WRITER---- InWriterThread1
THREAD:---NETWORK--- InNetworkThread
THREAD:---UI-------- InUIThread
THREAD:---WRITER---- InWriterThread2
AFTER SCOPE #######################################
Coroutine code
START #############################################
THREAD:---MAIN--- InCurrentThread
After function call ###############################
THREAD:---WRITER---- InWriterThread1
THREAD:---NETWORK--- InNetworkThread
THREAD:---UI-------- InUIThread
THREAD:---WRITER---- InWriterThread2
AFTER SCOPE #######################################
Exit Code:
0