Thread A regains the processor, believes pinstance is equal to zero and then makes a new instance of Singleton! If thread B is still using the pointer returned from Instance (), it's screwed! EDIT DOH ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results