Hello.

I need some quick help here: Are local static variables thread-safe?

I'm thinking about something like this:

Code:
MyClass& MyClass::GetInst()
{
      static MyClass myObj;
      return myObj;
}
Is it ok?