Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/proc/thread.h

    r1b20da0 ra35b458  
    7575        link_t wq_link;  /**< Wait queue link. */
    7676        link_t th_link;  /**< Links to threads within containing task. */
    77        
     77
    7878        /** Threads linkage to the threads_tree. */
    7979        avltree_node_t threads_tree_node;
    80        
     80
    8181        /** Lock protecting thread structure.
    8282         *
     
    8484         */
    8585        IRQ_SPINLOCK_DECLARE(lock);
    86        
     86
    8787        char name[THREAD_NAME_BUFLEN];
    88        
     88
    8989        /** Function implementing the thread. */
    9090        void (*thread_code)(void *);
    9191        /** Argument passed to thread_code() function. */
    9292        void *thread_arg;
    93        
     93
    9494        /**
    9595         * From here, the stored context is restored
     
    9797         */
    9898        context_t saved_context;
    99        
     99
    100100        /**
    101101         * From here, the stored timeout context
     
    103103         */
    104104        context_t sleep_timeout_context;
    105        
     105
    106106        /**
    107107         * From here, the stored interruption context
     
    109109         */
    110110        context_t sleep_interruption_context;
    111        
     111
    112112        /** If true, the thread can be interrupted from sleep. */
    113113        bool sleep_interruptible;
     
    118118        /** Flag signalling sleep timeout in progress. */
    119119        volatile bool timeout_pending;
    120        
     120
    121121        /**
    122122         * True if this thread is executing copy_from_uspace().
     
    124124         */
    125125        bool in_copy_from_uspace;
    126        
     126
    127127        /**
    128128         * True if this thread is executing copy_to_uspace().
     
    130130         */
    131131        bool in_copy_to_uspace;
    132        
     132
    133133        /**
    134134         * If true, the thread will not go to sleep at all and will call
     
    136136         */
    137137        bool interrupted;
    138        
     138
    139139        /** If true, thread_join_timeout() cannot be used on this thread. */
    140140        bool detached;
     
    143143        /** Link used in the joiner_head list. */
    144144        link_t joiner_link;
    145        
     145
    146146        fpu_context_t *saved_fpu_context;
    147147        bool fpu_context_exists;
    148        
     148
    149149        /*
    150150         * Defined only if thread doesn't run.
     
    153153         */
    154154        bool fpu_context_engaged;
    155        
     155
    156156        /* The thread will not be migrated if nomigrate is non-zero. */
    157157        unsigned int nomigrate;
    158        
     158
    159159        /** Thread state. */
    160160        state_t state;
    161        
     161
    162162        /** Thread CPU. */
    163163        cpu_t *cpu;
     
    170170        /** Thread is executed in user space. */
    171171        bool uspace;
    172        
     172
    173173        /** Ticks before preemption. */
    174174        uint64_t ticks;
    175        
     175
    176176        /** Thread accounting. */
    177177        uint64_t ucycles;
     
    181181        /** Thread doesn't affect accumulated accounting. */
    182182        bool uncounted;
    183        
     183
    184184        /** Thread's priority. Implemented as index to CPU->rq */
    185185        int priority;
     
    195195        /** True if the worker will block in order to become idle. Use workq->lock. */
    196196        bool workq_idling;
    197        
     197
    198198        /** RCU thread related data. Protected by its own locks. */
    199199        rcu_thread_data_t rcu;
    200        
     200
    201201        /** Architecture-specific data. */
    202202        thread_arch_t arch;
    203        
     203
    204204        /** Thread's kernel stack. */
    205205        uint8_t *kstack;
    206        
     206
    207207#ifdef CONFIG_UDEBUG
    208208        /**
     
    211211         */
    212212        bool btrace;
    213        
     213
    214214        /** Debugging stuff */
    215215        udebug_thread_t udebug;
Note: See TracChangeset for help on using the changeset viewer.