= rs) 914 continue retry; 915 // else CAS failed due to workerCount change; retry inner loop 916 } 917 } 918 919 boolean workerStarted = false; 920 boolean workerAdded = false; 921 Worker w = null; 922 try { 923 final ReentrantLock mainLock = this.mainLock; 924 w = new Worker(f...
* terminated, the returned value is meaningless and arbitrary. * * @return the number of unarrived parties */ // 获取未到达屏障的信号数量 public int getUnarrivedParties() { return unarrivedOf(reconcileState()); } /** * Returns {@code true} if this phaser has been terminated...