Changeset 8a64e81e in mainline for kernel/generic/src/proc/thread.c
- Timestamp:
- 2012-07-06T13:31:02Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0d56712
- Parents:
- 518dd43
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/thread.c
r518dd43 r8a64e81e 46 46 #include <synch/spinlock.h> 47 47 #include <synch/waitq.h> 48 #include <synch/workqueue.h> 48 49 #include <cpu.h> 49 50 #include <str.h> … … 260 261 } 261 262 263 /** Invoked right before thread_ready() readies the thread. thread is locked. */ 264 static void before_thread_is_ready(thread_t *thread) 265 { 266 ASSERT(irq_spinlock_locked(&thread->lock)); 267 workq_before_thread_is_ready(thread); 268 } 269 262 270 /** Make thread ready 263 271 * … … 273 281 ASSERT(thread->state != Ready); 274 282 283 before_thread_is_ready(thread); 284 275 285 int i = (thread->priority < RQ_COUNT - 1) ? 276 286 ++thread->priority : thread->priority; … … 378 388 379 389 thread->task = task; 390 391 thread->workq = NULL; 380 392 381 393 thread->fpu_context_exists = false;
Note:
See TracChangeset
for help on using the changeset viewer.