다음을 통해 공유


Phaser.AwaitAdvanceInterruptibly 메서드

정의

오버로드

AwaitAdvanceInterruptibly(Int32)

현재 단계가 지정된 단계 값과 같지 않거나 이 단계가 종료된 경우 이 단계가 지정된 단계 값에서 진행되도록 대기하거나, 대기하는 동안 중단된 경우 throw InterruptedException 하거나, 즉시 반환합니다.

AwaitAdvanceInterruptibly(Int32, Int64, TimeUnit)

지정된 단계 값 또는 지정된 시간 제한에서 경과할 때까지 이 단계의 단계를 기다리거나, 대기하는 동안 중단된 경우 throw InterruptedException 하거나, 현재 단계가 지정된 단계 값과 같지 않거나 이 단계가 종료된 경우 즉시 반환합니다.

AwaitAdvanceInterruptibly(Int32)

현재 단계가 지정된 단계 값과 같지 않거나 이 단계가 종료된 경우 이 단계가 지정된 단계 값에서 진행되도록 대기하거나, 대기하는 동안 중단된 경우 throw InterruptedException 하거나, 즉시 반환합니다.

[Android.Runtime.Register("awaitAdvanceInterruptibly", "(I)I", "GetAwaitAdvanceInterruptibly_IHandler")]
public virtual int AwaitAdvanceInterruptibly (int phase);
[<Android.Runtime.Register("awaitAdvanceInterruptibly", "(I)I", "GetAwaitAdvanceInterruptibly_IHandler")>]
abstract member AwaitAdvanceInterruptibly : int -> int
override this.AwaitAdvanceInterruptibly : int -> int

매개 변수

phase
Int32

도착 단계 번호 또는 종료된 경우 음수 값 이 인수는 일반적으로 이전 호출 arrive 에서 반환된 값입니다 arriveAndDeregister.

반환

다음 도착 단계 번호 또는 음수인 경우 인수 또는 종료된 경우 (음수) #getPhase() 현재 단계

특성

예외

대기하는 동안 스레드가 중단된 경우

설명

현재 단계가 지정된 단계 값과 같지 않거나 이 단계가 종료된 경우 이 단계가 지정된 단계 값에서 진행되도록 대기하거나, 대기하는 동안 중단된 경우 throw InterruptedException 하거나, 즉시 반환합니다.

에 대한 java.util.concurrent.Phaser.awaitAdvanceInterruptibly(int)Java 설명서

이 페이지의 일부는 Android 오픈 소스 프로젝트에서 만들고 공유하고 Creative Commons 2.5 특성 라이선스에 설명된 용어에 따라 사용되는 작업을 기반으로 하는 수정 사항입니다.

적용 대상

AwaitAdvanceInterruptibly(Int32, Int64, TimeUnit)

지정된 단계 값 또는 지정된 시간 제한에서 경과할 때까지 이 단계의 단계를 기다리거나, 대기하는 동안 중단된 경우 throw InterruptedException 하거나, 현재 단계가 지정된 단계 값과 같지 않거나 이 단계가 종료된 경우 즉시 반환합니다.

[Android.Runtime.Register("awaitAdvanceInterruptibly", "(IJLjava/util/concurrent/TimeUnit;)I", "GetAwaitAdvanceInterruptibly_IJLjava_util_concurrent_TimeUnit_Handler")]
public virtual int AwaitAdvanceInterruptibly (int phase, long timeout, Java.Util.Concurrent.TimeUnit? unit);
[<Android.Runtime.Register("awaitAdvanceInterruptibly", "(IJLjava/util/concurrent/TimeUnit;)I", "GetAwaitAdvanceInterruptibly_IJLjava_util_concurrent_TimeUnit_Handler")>]
abstract member AwaitAdvanceInterruptibly : int * int64 * Java.Util.Concurrent.TimeUnit -> int
override this.AwaitAdvanceInterruptibly : int * int64 * Java.Util.Concurrent.TimeUnit -> int

매개 변수

phase
Int32

도착 단계 번호 또는 종료된 경우 음수 값 이 인수는 일반적으로 이전 호출 arrive 에서 반환된 값입니다 arriveAndDeregister.

timeout
Int64

포기하기 전에 대기하는 시간(단위)입니다. unit

unit
TimeUnit

TimeUnit 매개 변수를 해석 timeout 하는 방법 결정

반환

다음 도착 단계 번호 또는 음수인 경우 인수 또는 종료된 경우 (음수) #getPhase() 현재 단계

특성

예외

대기하는 동안 스레드가 중단된 경우

대기하는 동안 시간이 초과된 경우

설명

지정된 단계 값 또는 지정된 시간 제한에서 경과할 때까지 이 단계의 단계를 기다리거나, 대기하는 동안 중단된 경우 throw InterruptedException 하거나, 현재 단계가 지정된 단계 값과 같지 않거나 이 단계가 종료된 경우 즉시 반환합니다.

에 대한 java.util.concurrent.Phaser.awaitAdvanceInterruptibly(int, long, java.util.concurrent.TimeUnit)Java 설명서

이 페이지의 일부는 Android 오픈 소스 프로젝트에서 만들고 공유하고 Creative Commons 2.5 특성 라이선스에 설명된 용어에 따라 사용되는 작업을 기반으로 하는 수정 사항입니다.

적용 대상