Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. Semaphore[] semaphores = new Semaphore[NUM_PROGRESSBARS];
  2.  
  3. // notice the first Semaphore is 'unlocked' while the rest are 'locked'
  4. semaphores[0] = new Semaphore(1);
  5. semaphores[1] = new Semaphore(0);
  6. semaphores[2] = new Semaphore(0);
  7. semaphores[3] = new Semaphore(0);
  8. semaphores[4] = new Semaphore(0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement