Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Semaphore[] semaphores = new Semaphore[NUM_PROGRESSBARS];
- // notice the first Semaphore is 'unlocked' while the rest are 'locked'
- semaphores[0] = new Semaphore(1);
- semaphores[1] = new Semaphore(0);
- semaphores[2] = new Semaphore(0);
- semaphores[3] = new Semaphore(0);
- semaphores[4] = new Semaphore(0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement