Is this example thread safe ?
Can i call directly the class`s method from different threads ?
ThanksCode:class someclass { void DoSomething(); SomeMutex Mutex; ..... }; void someclass::DoSomething() { WaitForMutex(Mutex); .... //do some operations with the class data .... ReleaseMutex(Mutex); }