Package org.robovm.apple.foundation
Class NSThread
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.foundation.NSThread
-
- All Implemented Interfaces:
NSObjectProtocol
,org.robovm.objc.ObjCProtocol
public class NSThread extends NSObject
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NSThread.Notifications
static class
NSThread.NSThreadPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
NSThread()
NSThread(java.lang.Runnable block)
protected
NSThread(NSObject.Handle h, long handle)
protected
NSThread(NSObject.SkipInit skipInit)
NSThread(NSObject target, org.robovm.objc.Selector selector, NSObject argument)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
static void
detachNewThread(java.lang.Runnable block)
static void
detachNewThread(org.robovm.objc.Selector selector, NSObject target, NSObject argument)
static NSString
DidBecomeSingleThreadedNotification()
static void
exit()
static NSArray<NSNumber>
getCallStackReturnAddresses()
static NSArray<NSString>
getCallStackSymbols()
static NSThread
getCurrentThread()
static NSThread
getMainThread()
java.lang.String
getName()
NSQualityOfService
getQualityOfService()
long
getStackSize()
NSMutableDictionary<?,?>
getThreadDictionary()
static double
getThreadPriority()
protected long
init(java.lang.Runnable block)
protected long
init(NSObject target, org.robovm.objc.Selector selector, NSObject argument)
boolean
isCancelled()
static boolean
isCurrentThreadMainThread()
boolean
isExecuting()
boolean
isFinished()
boolean
isMainThread()
static boolean
isMultiThreaded()
void
main()
void
setName(java.lang.String v)
void
setQualityOfService(NSQualityOfService v)
void
setStackSize(long v)
static boolean
setThreadPriority(double p)
static void
sleep(double ti)
static void
sleep(NSDate date)
void
start()
static NSString
WillBecomeMultiThreadedNotification()
static NSString
WillExitNotification()
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
NSThread
protected NSThread()
-
NSThread
protected NSThread(NSObject.Handle h, long handle)
-
NSThread
protected NSThread(NSObject.SkipInit skipInit)
-
NSThread
public NSThread(NSObject target, org.robovm.objc.Selector selector, NSObject argument)
- Since:
- Available in iOS 2.0 and later.
-
NSThread
public NSThread(java.lang.Runnable block)
- Since:
- Available in iOS 10.0 and later.
-
-
Method Detail
-
getCurrentThread
public static NSThread getCurrentThread()
-
getThreadDictionary
public NSMutableDictionary<?,?> getThreadDictionary()
-
getQualityOfService
public NSQualityOfService getQualityOfService()
- Since:
- Available in iOS 8.0 and later.
-
setQualityOfService
public void setQualityOfService(NSQualityOfService v)
- Since:
- Available in iOS 8.0 and later.
-
getCallStackReturnAddresses
public static NSArray<NSNumber> getCallStackReturnAddresses()
- Since:
- Available in iOS 2.0 and later.
-
getCallStackSymbols
public static NSArray<NSString> getCallStackSymbols()
- Since:
- Available in iOS 4.0 and later.
-
getName
public java.lang.String getName()
- Since:
- Available in iOS 2.0 and later.
-
setName
public void setName(java.lang.String v)
- Since:
- Available in iOS 2.0 and later.
-
getStackSize
public long getStackSize()
- Since:
- Available in iOS 2.0 and later.
-
setStackSize
public void setStackSize(long v)
- Since:
- Available in iOS 2.0 and later.
-
isMainThread
public boolean isMainThread()
- Since:
- Available in iOS 2.0 and later.
-
isCurrentThreadMainThread
public static boolean isCurrentThreadMainThread()
- Since:
- Available in iOS 2.0 and later.
-
getMainThread
public static NSThread getMainThread()
- Since:
- Available in iOS 2.0 and later.
-
isExecuting
public boolean isExecuting()
- Since:
- Available in iOS 2.0 and later.
-
isFinished
public boolean isFinished()
- Since:
- Available in iOS 2.0 and later.
-
isCancelled
public boolean isCancelled()
- Since:
- Available in iOS 2.0 and later.
-
WillBecomeMultiThreadedNotification
public static NSString WillBecomeMultiThreadedNotification()
-
DidBecomeSingleThreadedNotification
public static NSString DidBecomeSingleThreadedNotification()
-
WillExitNotification
public static NSString WillExitNotification()
-
init
protected long init(NSObject target, org.robovm.objc.Selector selector, NSObject argument)
- Since:
- Available in iOS 2.0 and later.
-
init
protected long init(java.lang.Runnable block)
- Since:
- Available in iOS 10.0 and later.
-
cancel
public void cancel()
- Since:
- Available in iOS 2.0 and later.
-
start
public void start()
- Since:
- Available in iOS 2.0 and later.
-
main
public void main()
- Since:
- Available in iOS 2.0 and later.
-
detachNewThread
public static void detachNewThread(java.lang.Runnable block)
- Since:
- Available in iOS 10.0 and later.
-
detachNewThread
public static void detachNewThread(org.robovm.objc.Selector selector, NSObject target, NSObject argument)
-
isMultiThreaded
public static boolean isMultiThreaded()
-
sleep
public static void sleep(NSDate date)
-
sleep
public static void sleep(double ti)
-
exit
public static void exit()
-
getThreadPriority
public static double getThreadPriority()
-
setThreadPriority
public static boolean setThreadPriority(double p)
-
-