Lines Matching defs:timed
144 * @param timed if this operation should timeout
151 abstract Object transfer(Object e, boolean timed, long nanos);
158 * The number of times to spin before blocking in timed waits.
168 * This is greater than timed value because untimed waits spin
175 * rather than to use timed park. A rough estimate suffices.
289 Object transfer(Object e, boolean timed, long nanos) {
317 if (timed && nanos <= 0) { // can't wait
323 SNode m = awaitFulfill(s, timed, nanos);
370 * @param timed true if timed wait
374 SNode awaitFulfill(SNode s, boolean timed, long nanos) {
397 long lastTime = (timed)? System.nanoTime() : 0;
401 (timed? maxTimedSpins : maxUntimedSpins) : 0);
408 if (timed) {
421 else if (!timed)
594 Object transfer(Object e, boolean timed, long nanos) {
637 if (timed && nanos <= 0) // can't wait
645 Object x = awaitFulfill(s, e, timed, nanos);
684 * @param timed true if timed wait
688 Object awaitFulfill(QNode s, Object e, boolean timed, long nanos) {
690 long lastTime = (timed)? System.nanoTime() : 0;
693 (timed? maxTimedSpins : maxUntimedSpins) : 0);
700 if (timed) {
713 else if (!timed)