wait

actual fun wait(mode: Fence.Mode, timeout: Long): Fence.FenceStatus

Client-side wait on the Fence.

Blocks the current thread until the Fence signals.

Return

FenceStatus.CONDITION_SATISFIED on success, FenceStatus.TIMEOUT_EXPIRED if the time out expired, or FenceStatus.ERROR in other cases.

Parameters

mode

Whether the command stream is flushed before waiting or not.

timeout

Wait time out in nanoseconds. Using a timeout of 0 is a way to query the state of the fence.

expect fun wait(mode: Fence.Mode, timeout: Long): Fence.FenceStatus

Client-side wait on the Fence.

Blocks the current thread until the Fence signals.

Return

FenceStatus.CONDITION_SATISFIED on success, FenceStatus.TIMEOUT_EXPIRED if the time out expired, or FenceStatus.ERROR in other cases.

Parameters

mode

Whether the command stream is flushed before waiting or not.

timeout

Wait time out in nanoseconds. Using a timeout of 0 is a way to query the state of the fence.

actual fun wait(mode: Fence.Mode, timeout: Long): Fence.FenceStatus

Client-side wait on the Fence.

Blocks the current thread until the Fence signals.

Return

FenceStatus.CONDITION_SATISFIED on success, FenceStatus.TIMEOUT_EXPIRED if the time out expired, or FenceStatus.ERROR in other cases.

Parameters

mode

Whether the command stream is flushed before waiting or not.

timeout

Wait time out in nanoseconds. Using a timeout of 0 is a way to query the state of the fence.

actual fun wait(mode: Fence.Mode, timeout: Long): Fence.FenceStatus

Client-side wait on the Fence.

Blocks the current thread until the Fence signals.

Return

FenceStatus.CONDITION_SATISFIED on success, FenceStatus.TIMEOUT_EXPIRED if the time out expired, or FenceStatus.ERROR in other cases.

Parameters

mode

Whether the command stream is flushed before waiting or not.

timeout

Wait time out in nanoseconds. Using a timeout of 0 is a way to query the state of the fence.

actual fun wait(mode: Fence.Mode, timeout: Long): Fence.FenceStatus

Client-side wait on the Fence.

Blocks the current thread until the Fence signals.

Return

FenceStatus.CONDITION_SATISFIED on success, FenceStatus.TIMEOUT_EXPIRED if the time out expired, or FenceStatus.ERROR in other cases.

Parameters

mode

Whether the command stream is flushed before waiting or not.

timeout

Wait time out in nanoseconds. Using a timeout of 0 is a way to query the state of the fence.