次の方法で共有


Os.Poll(StructPollfd[], Int32) Method

Definition

See poll(2).

[Android.Runtime.Register("poll", "([Landroid/system/StructPollfd;I)I", "")]
public static int Poll (Android.Systems.StructPollfd[]? fds, int timeoutMs);
[<Android.Runtime.Register("poll", "([Landroid/system/StructPollfd;I)I", "")>]
static member Poll : Android.Systems.StructPollfd[] * int -> int

Parameters

fds
StructPollfd[]
timeoutMs
Int32

Returns

Attributes

Exceptions

Remarks

See poll(2).

Note that in Lollipop this could throw an ErrnoException with EINTR. In later releases, the implementation will automatically just restart the system call with an appropriately reduced timeout.

Java documentation for android.system.Os.poll(android.system.StructPollfd[], int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to