Pointers don't become invalid. Addresses become invalid.

int* mypointer is still valid after wait. But &mypointer isn't.