Changeset d900699 in mainline for kernel/generic/src/proc/thread.c
- Timestamp:
- 2011-06-17T16:48:53Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f3a605be
- Parents:
- df8110d3 (diff), 98caf49 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/thread.c
rdf8110d3 rd900699 322 322 thread->cpu = NULL; 323 323 thread->flags = flags; 324 thread->nomigrate = 0; 324 325 thread->state = Entering; 325 326 … … 482 483 /* Not reached */ 483 484 while (true); 485 } 486 487 /** Prevent the current thread from being migrated to another processor. */ 488 void thread_migration_disable(void) 489 { 490 ASSERT(THREAD); 491 492 THREAD->nomigrate++; 493 } 494 495 /** Allow the current thread to be migrated to another processor. */ 496 void thread_migration_enable(void) 497 { 498 ASSERT(THREAD); 499 ASSERT(THREAD->nomigrate > 0); 500 501 THREAD->nomigrate--; 484 502 } 485 503
Note:
See TracChangeset
for help on using the changeset viewer.