Class EConfigure.ThreadConfig

    • Field Detail

      • mName

        protected final String mName
        The unique thread name. Used to create Java thread name.
      • mThreadType

        protected final ThreadType mThreadType
        Specifies thread operation: blocking, spinning, spin+park, or spin+yield.
      • mSpinLimit

        protected final long mSpinLimit
        If mThreadType is spin+park or spin+yield, then spin this many times on trying to acquire the next client before parking/yielding.
      • mParkTime

        protected final Duration mParkTime
        If mThreadType is spin+park, then park for this many time limit before returning to spinning.
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • name

        public final String name()
        Returns the unique thread name.
        Returns:
        thread name.
      • spinLimit

        public final long spinLimit()
        Returns the spin limit used by spin+park and spin+yield thread types.
        Returns:
        spin limit.
      • parkTime

        public final Duration parkTime()
        Returns the park time used by spin+park thread type.
        Returns:
        nanosecond park time.
      • priority

        public final int priority()
        Returns the thread priority.
        Returns:
        thread priority.
      • affinity

        public ThreadAffinityConfigure[] affinity()
        Returns thread affinity and null if no affinity is set. This affinity is used to associate a thread with a particular CPU.
        Returns:
        thread affinity.