Changeset 1506658c in rtems for cpukit/score/src/threadstart.c
- Timestamp:
- 01/08/16 11:11:03 (7 years ago)
- Branches:
- 5, master
- Children:
- 599d71f
- Parents:
- ccd5434
- git-author:
- Sebastian Huber <sebastian.huber@…> (01/08/16 11:11:03)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (01/11/16 07:47:24)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/score/src/threadstart.c
rccd5434 r1506658c 22 22 #include <rtems/score/threadimpl.h> 23 23 #include <rtems/score/isrlevel.h> 24 #include <rtems/score/schedulerimpl.h>25 24 #include <rtems/score/userextimpl.h> 26 25 27 26 bool _Thread_Start( 28 27 Thread_Control *the_thread, 29 const Thread_Entry_information *entry, 30 Per_CPU_Control *cpu 28 const Thread_Entry_information *entry 31 29 ) 32 30 { … … 34 32 the_thread->Start.Entry = *entry; 35 33 _Thread_Load_environment( the_thread ); 36 37 if ( cpu == NULL ) { 38 _Thread_Ready( the_thread ); 39 } else { 40 const Scheduler_Control *scheduler = _Scheduler_Get_by_CPU( cpu ); 41 42 if ( scheduler != NULL ) { 43 the_thread->current_state = STATES_READY; 44 _Scheduler_Start_idle( scheduler, the_thread, cpu ); 45 } 46 } 47 34 _Thread_Ready( the_thread ); 48 35 _User_extensions_Thread_start( the_thread ); 49 36
Note: See TracChangeset
for help on using the changeset viewer.