コード例 #1
0
ファイル: P2PClient.java プロジェクト: jstarek/dcache
 /** Cancels all transfers. */
 public synchronized void shutdown() throws InterruptedException {
   for (Companion companion : _companions.values()) {
     companion.cancel("Pool is going down");
   }
   while (!_companions.isEmpty()) {
     wait();
   }
 }
コード例 #2
0
ファイル: P2PClient.java プロジェクト: jstarek/dcache
 synchronized int getId() throws InterruptedException {
   while (_id == -1) {
     wait();
   }
   return _id;
 }