Package org.robovm.apple.dispatch
Class Dispatch
java.lang.Object
org.robovm.apple.dispatch.Dispatch
public class Dispatch extends Object
-
Field Summary
Fields Modifier and Type Field Description static intAPI_VERSIONstatic intAPPLY_AUTO_AVAILABLEstatic intONCE_INLINE_FASTPATHstatic intSWIFT3_OVERLAYprotected static longTIME_FOREVERprotected static longTIME_NOWstatic longWALLTIME_NOW -
Constructor Summary
Constructors Constructor Description Dispatch() -
Method Summary
Modifier and Type Method Description static voidactivate(DispatchObject object)static voidmain()static voidonce(Runnable block)protected static voidonce(MachineSizedSIntPtr predicate, Runnable block)static voidread(int fd, long length, DispatchQueue queue, VoidBlock2<DispatchData,Integer> handler)static voidsetQosClassFloor(DispatchObject object, int qos_class, int relative_priority)protected static longtime(long when, long delta)protected static longwalltime(org.robovm.apple.dispatch.timespec when, long delta)static voidwrite(int fd, DispatchData data, DispatchQueue queue, VoidBlock2<DispatchData,Integer> handler)
-
Field Details
-
API_VERSION
public static final int API_VERSION- See Also:
- Constant Field Values
-
SWIFT3_OVERLAY
public static final int SWIFT3_OVERLAY- See Also:
- Constant Field Values
-
TIME_NOW
protected static final long TIME_NOW- See Also:
- Constant Field Values
-
TIME_FOREVER
protected static final long TIME_FOREVER- See Also:
- Constant Field Values
-
APPLY_AUTO_AVAILABLE
public static final int APPLY_AUTO_AVAILABLE- See Also:
- Constant Field Values
-
ONCE_INLINE_FASTPATH
public static final int ONCE_INLINE_FASTPATH- See Also:
- Constant Field Values
-
WALLTIME_NOW
public static final long WALLTIME_NOW- See Also:
- Constant Field Values
-
-
Constructor Details
-
Dispatch
public Dispatch()
-
-
Method Details
-
once
- Since:
- Available in iOS 4.0 and later.
-
time
protected static long time(long when, long delta) -
walltime
protected static long walltime(org.robovm.apple.dispatch.timespec when, long delta) -
activate
- Since:
- Available in iOS 10.0 and later.
-
setQosClassFloor
- Since:
- Available in iOS 12.0 and later.
-
main
public static void main() -
once
-
read
public static void read(int fd, long length, DispatchQueue queue, VoidBlock2<DispatchData,Integer> handler) -
write
public static void write(int fd, DispatchData data, DispatchQueue queue, VoidBlock2<DispatchData,Integer> handler)
-