Testing the program's flow in threadvar.h