Changeset 66374df in rtems
- Timestamp:
- 04/29/16 07:27:11 (7 years ago)
- Branches:
- 5, master
- Children:
- 981eed2
- Parents:
- 259d885
- git-author:
- Sebastian Huber <sebastian.huber@…> (04/29/16 07:27:11)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (05/02/16 05:46:17)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/posix/src/killinfo.c
r259d885 r66374df 77 77 Thread_queue_Heads *heads; 78 78 ISR_lock_Context lock_context; 79 Per_CPU_Control *cpu_self; 79 80 80 81 /* … … 121 122 } 122 123 123 _Thread_Disable_dispatch(); 124 /* FIXME: https://devel.rtems.org/ticket/2690 */ 125 cpu_self = _Thread_Dispatch_disable(); 124 126 125 127 /* … … 127 129 * get it an execute it as soon as the dispatcher executes. 128 130 */ 129 the_thread = _ Thread_Executing;131 the_thread = _Per_CPU_Get_executing( cpu_self ); 130 132 131 133 api = the_thread->API_Extensions[ THREAD_API_POSIX ]; … … 321 323 */ 322 324 if ( _POSIX_signals_Unblock_thread( the_thread, sig, siginfo ) ) { 323 _Thread_ Enable_dispatch();325 _Thread_Dispatch_enable( cpu_self ); 324 326 return 0; 325 327 } … … 341 343 if ( !psiginfo ) { 342 344 _POSIX_signals_Release( &lock_context ); 343 _Thread_ Enable_dispatch();345 _Thread_Dispatch_enable( cpu_self ); 344 346 rtems_set_errno_and_return_minus_one( EAGAIN ); 345 347 } … … 355 357 _POSIX_signals_Release( &lock_context ); 356 358 DEBUG_STEP("\n"); 357 _Thread_ Enable_dispatch();359 _Thread_Dispatch_enable( cpu_self ); 358 360 return 0; 359 361 }
Note: See TracChangeset
for help on using the changeset viewer.