if got an Add function in a shared header:
is it safe if multiple threads calling the Add function?. if not how to make it safe to avoid unexpected results?.Code:int Add(int a, int b) { return a+b; }
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Results 1 to 5 of 5
Thread: threads and function callThreaded View
|
Click Here to Expand Forum to Full Width |