I want a class to know what thread it's in and be able to tell when it's in a new thread. How would I do this? And is it the same on all platforms in C++?