Guest User

Untitled

a guest
May 21st, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. a->Lock();
  2. b->Lock();
  3.         for(int i = 0; i < 9999; ++i)
  4.         {
  5.             bool skip = false;
  6.  
  7.             for(int j = 0; j < 9999; ++j)
  8.             {
  9.                 if(/* Test Some Condition To Skip Involving Object a and b*/)
  10.                 {
  11.                     skip = true;
  12.                     break;
  13.  
  14.                 }
  15.  
  16.             }
  17.  
  18.             if(skip) continue;
  19.  
  20.             // Do Something Important Here
  21.  
  22.         }
  23. b->Unlock();
  24. a->Unlock();
Add Comment
Please, Sign In to add comment