示例#1
0
 public void get() throws InterruptedException {
   semaphore.acquire();
   display.setFork(identity, true);
 }
示例#2
0
 public void put() {
   semaphore.release();
   display.setFork(identity, false);
 }