Is it safe to for example do:
void AddTwo(int &num) { num +=2; } void ThreadProc(lpvoid arg) { AddTwo((int)arg); }
Would it be saf
The safey depends on the value of lpvoid arg.
If All of the args are different each other, then safe otherwise not.
To make function call safe, Check out 'mutex'.