Hello.
I need some quick help here: Are local static variables thread-safe?
I'm thinking about something like this:
Is it ok?Code:MyClass& MyClass::GetInst() { static MyClass myObj; return myObj; }
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 10 of 10
Threaded View
|
Click Here to Expand Forum to Full Width |