Changes in kernel/generic/include/proc/thread.h [1b20da0:a35b458] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/proc/thread.h
r1b20da0 ra35b458 75 75 link_t wq_link; /**< Wait queue link. */ 76 76 link_t th_link; /**< Links to threads within containing task. */ 77 77 78 78 /** Threads linkage to the threads_tree. */ 79 79 avltree_node_t threads_tree_node; 80 80 81 81 /** Lock protecting thread structure. 82 82 * … … 84 84 */ 85 85 IRQ_SPINLOCK_DECLARE(lock); 86 86 87 87 char name[THREAD_NAME_BUFLEN]; 88 88 89 89 /** Function implementing the thread. */ 90 90 void (*thread_code)(void *); 91 91 /** Argument passed to thread_code() function. */ 92 92 void *thread_arg; 93 93 94 94 /** 95 95 * From here, the stored context is restored … … 97 97 */ 98 98 context_t saved_context; 99 99 100 100 /** 101 101 * From here, the stored timeout context … … 103 103 */ 104 104 context_t sleep_timeout_context; 105 105 106 106 /** 107 107 * From here, the stored interruption context … … 109 109 */ 110 110 context_t sleep_interruption_context; 111 111 112 112 /** If true, the thread can be interrupted from sleep. */ 113 113 bool sleep_interruptible; … … 118 118 /** Flag signalling sleep timeout in progress. */ 119 119 volatile bool timeout_pending; 120 120 121 121 /** 122 122 * True if this thread is executing copy_from_uspace(). … … 124 124 */ 125 125 bool in_copy_from_uspace; 126 126 127 127 /** 128 128 * True if this thread is executing copy_to_uspace(). … … 130 130 */ 131 131 bool in_copy_to_uspace; 132 132 133 133 /** 134 134 * If true, the thread will not go to sleep at all and will call … … 136 136 */ 137 137 bool interrupted; 138 138 139 139 /** If true, thread_join_timeout() cannot be used on this thread. */ 140 140 bool detached; … … 143 143 /** Link used in the joiner_head list. */ 144 144 link_t joiner_link; 145 145 146 146 fpu_context_t *saved_fpu_context; 147 147 bool fpu_context_exists; 148 148 149 149 /* 150 150 * Defined only if thread doesn't run. … … 153 153 */ 154 154 bool fpu_context_engaged; 155 155 156 156 /* The thread will not be migrated if nomigrate is non-zero. */ 157 157 unsigned int nomigrate; 158 158 159 159 /** Thread state. */ 160 160 state_t state; 161 161 162 162 /** Thread CPU. */ 163 163 cpu_t *cpu; … … 170 170 /** Thread is executed in user space. */ 171 171 bool uspace; 172 172 173 173 /** Ticks before preemption. */ 174 174 uint64_t ticks; 175 175 176 176 /** Thread accounting. */ 177 177 uint64_t ucycles; … … 181 181 /** Thread doesn't affect accumulated accounting. */ 182 182 bool uncounted; 183 183 184 184 /** Thread's priority. Implemented as index to CPU->rq */ 185 185 int priority; … … 195 195 /** True if the worker will block in order to become idle. Use workq->lock. */ 196 196 bool workq_idling; 197 197 198 198 /** RCU thread related data. Protected by its own locks. */ 199 199 rcu_thread_data_t rcu; 200 200 201 201 /** Architecture-specific data. */ 202 202 thread_arch_t arch; 203 203 204 204 /** Thread's kernel stack. */ 205 205 uint8_t *kstack; 206 206 207 207 #ifdef CONFIG_UDEBUG 208 208 /** … … 211 211 */ 212 212 bool btrace; 213 213 214 214 /** Debugging stuff */ 215 215 udebug_thread_t udebug;
Note:
See TracChangeset
for help on using the changeset viewer.