Class NSThread

    • Constructor Detail

      • NSThread

        protected NSThread()
      • 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()
      • 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)