code_junkie

Is it safe to manipulate objects that I created outside my thread if I don't explicitly access them on the thread which created them?

Nov 10th, 2011
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. void CreateObject()
  2. {
  3. Object* sharedObj = new Object();
  4. PassObjectToUsingThread( sharedObj); // this function would be system dependent
  5. }
Add Comment
Please, Sign In to add comment