Hi Im tying to use the COUT for debug the sequence. But It seems that I cant shows the cout once start the connection  by right I should see connected. but I cant sees it. Same goes for all cout after the connection. I tried static mutex lock and conditional wait. they both not working http://www.cplusplus.com/reference/condition_variable/condition_variable/wait/ Can any 1 share some inside on how to debug ?