Package org.robovm.apple.dispatch
Class Dispatch
- java.lang.Object
-
- org.robovm.apple.dispatch.Dispatch
-
public class Dispatch extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
API_VERSION
static int
APPLY_AUTO_AVAILABLE
static int
AUTORELEASE_FREQUENCY_INHERIT
static int
AUTORELEASE_FREQUENCY_NEVER
static int
AUTORELEASE_FREQUENCY_WORK_ITEM
static int
ONCE_INLINE_FASTPATH
static int
SWIFT3_OVERLAY
protected static long
TIME_FOREVER
protected static long
TIME_NOW
static long
WALLTIME_NOW
-
Constructor Summary
Constructors Constructor Description Dispatch()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
activate(DispatchObject object)
static void
assertQueue(DispatchQueue queue)
static void
assertQueueBarrier(DispatchQueue queue)
static void
assertQueueNot(DispatchQueue queue)
static void
main()
static void
once(java.lang.Runnable block)
protected static void
once(org.robovm.rt.bro.ptr.MachineSizedSIntPtr predicate, java.lang.Runnable block)
static void
read(int fd, long length, DispatchQueue queue, org.robovm.objc.block.VoidBlock2<DispatchData,java.lang.Integer> handler)
protected static long
time(long when, long delta)
protected static long
walltime(org.robovm.apple.dispatch.timespec when, long delta)
static void
write(int fd, DispatchData data, DispatchQueue queue, org.robovm.objc.block.VoidBlock2<DispatchData,java.lang.Integer> handler)
-
-
-
Field Detail
-
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
-
AUTORELEASE_FREQUENCY_INHERIT
public static final int AUTORELEASE_FREQUENCY_INHERIT
- See Also:
- Constant Field Values
-
AUTORELEASE_FREQUENCY_WORK_ITEM
public static final int AUTORELEASE_FREQUENCY_WORK_ITEM
- See Also:
- Constant Field Values
-
AUTORELEASE_FREQUENCY_NEVER
public static final int AUTORELEASE_FREQUENCY_NEVER
- See Also:
- Constant Field Values
-
-
Method Detail
-
once
public static void once(java.lang.Runnable block)
- Since:
- Available in iOS 4.0 and later.
-
time
protected static long time(long when, long delta)
- Since:
- Available in iOS 4.0 and later.
-
walltime
protected static long walltime(org.robovm.apple.dispatch.timespec when, long delta)
- Since:
- Available in iOS 4.0 and later.
-
activate
public static void activate(DispatchObject object)
- Since:
- Available in iOS 10.0 and later.
-
main
public static void main()
- Since:
- Available in iOS 4.0 and later.
-
assertQueue
public static void assertQueue(DispatchQueue queue)
- Since:
- Available in iOS 10.0 and later.
-
assertQueueBarrier
public static void assertQueueBarrier(DispatchQueue queue)
- Since:
- Available in iOS 10.0 and later.
-
assertQueueNot
public static void assertQueueNot(DispatchQueue queue)
- Since:
- Available in iOS 10.0 and later.
-
once
protected static void once(org.robovm.rt.bro.ptr.MachineSizedSIntPtr predicate, java.lang.Runnable block)
- Since:
- Available in iOS 4.0 and later.
-
read
public static void read(int fd, long length, DispatchQueue queue, org.robovm.objc.block.VoidBlock2<DispatchData,java.lang.Integer> handler)
- Since:
- Available in iOS 5.0 and later.
-
write
public static void write(int fd, DispatchData data, DispatchQueue queue, org.robovm.objc.block.VoidBlock2<DispatchData,java.lang.Integer> handler)
- Since:
- Available in iOS 5.0 and later.
-
-