Changeset cb1b853d in rtems
- Timestamp:
- 06/18/98 19:01:57 (26 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 8ed1f8d0
- Parents:
- 7e4c3d8b
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/exec/posix/src/pthread.c
r7e4c3d8b rcb1b853d 1145 1145 ) 1146 1146 { 1147 Objects_Information *the_information; 1148 1149 the_information = _Objects_Get_information( _Thread_Executing->Object.id ); 1150 1147 1151 _Thread_Disable_dispatch(); 1148 1152 1149 1153 _Thread_Executing->Wait.return_argument = (unsigned32 *)value_ptr; 1150 1154 1151 _Thread_Close( &_POSIX_Threads_Information, _Thread_Executing );1155 _Thread_Close( the_information, _Thread_Executing ); 1152 1156 1153 1157 _POSIX_Threads_Free( _Thread_Executing ); -
c/src/exec/rtems/src/tasks.c
r7e4c3d8b rcb1b853d 556 556 register Thread_Control *the_thread; 557 557 Objects_Locations location; 558 Objects_Information *the_information; 558 559 559 560 the_thread = _Thread_Get( id, &location ); … … 565 566 return RTEMS_ILLEGAL_ON_REMOTE_OBJECT; 566 567 case OBJECTS_LOCAL: 567 _Thread_Close( &_RTEMS_tasks_Information, the_thread ); 568 the_information = _Objects_Get_information( the_thread->Object.id ); 569 570 if ( !the_information ) { 571 _Thread_Enable_dispatch(); 572 return RTEMS_INVALID_ID; 573 /* This should never happen if _Thread_Get() works right */ 574 } 575 576 _Thread_Close( the_information, the_thread ); 568 577 569 578 _RTEMS_tasks_Free( the_thread ); -
cpukit/posix/src/pthread.c
r7e4c3d8b rcb1b853d 1145 1145 ) 1146 1146 { 1147 Objects_Information *the_information; 1148 1149 the_information = _Objects_Get_information( _Thread_Executing->Object.id ); 1150 1147 1151 _Thread_Disable_dispatch(); 1148 1152 1149 1153 _Thread_Executing->Wait.return_argument = (unsigned32 *)value_ptr; 1150 1154 1151 _Thread_Close( &_POSIX_Threads_Information, _Thread_Executing );1155 _Thread_Close( the_information, _Thread_Executing ); 1152 1156 1153 1157 _POSIX_Threads_Free( _Thread_Executing ); -
cpukit/rtems/src/tasks.c
r7e4c3d8b rcb1b853d 556 556 register Thread_Control *the_thread; 557 557 Objects_Locations location; 558 Objects_Information *the_information; 558 559 559 560 the_thread = _Thread_Get( id, &location ); … … 565 566 return RTEMS_ILLEGAL_ON_REMOTE_OBJECT; 566 567 case OBJECTS_LOCAL: 567 _Thread_Close( &_RTEMS_tasks_Information, the_thread ); 568 the_information = _Objects_Get_information( the_thread->Object.id ); 569 570 if ( !the_information ) { 571 _Thread_Enable_dispatch(); 572 return RTEMS_INVALID_ID; 573 /* This should never happen if _Thread_Get() works right */ 574 } 575 576 _Thread_Close( the_information, the_thread ); 568 577 569 578 _RTEMS_tasks_Free( the_thread );
Note: See TracChangeset
for help on using the changeset viewer.