Changeset 23fec9f0 in rtems for cpukit/sapi
- Timestamp:
- 03/27/14 13:16:12 (10 years ago)
- Branches:
- 4.11, 5, master
- Children:
- f0b4fd9
- Parents:
- 34684573
- git-author:
- Sebastian Huber <sebastian.huber@…> (03/27/14 13:16:12)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (03/31/14 06:29:44)
- Location:
- cpukit/sapi/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/sapi/src/extensioncreate.c
r34684573 r23fec9f0 40 40 return RTEMS_INVALID_NAME; 41 41 42 _Thread_Disable_dispatch(); /* to prevent deletion */43 44 42 the_extension = _Extension_Allocate(); 45 43 46 44 if ( !the_extension ) { 47 _ Thread_Enable_dispatch();45 _Objects_Allocator_unlock(); 48 46 return RTEMS_TOO_MANY; 49 47 } 50 48 49 _Thread_Disable_dispatch(); 51 50 _User_extensions_Add_set_with_table( &the_extension->Extension, extension_table ); 51 _Thread_Enable_dispatch(); 52 52 53 53 _Objects_Open( … … 58 58 59 59 *id = the_extension->Object.id; 60 _ Thread_Enable_dispatch();60 _Objects_Allocator_unlock(); 61 61 return RTEMS_SUCCESSFUL; 62 62 } -
cpukit/sapi/src/extensiondelete.c
r34684573 r23fec9f0 31 31 Objects_Locations location; 32 32 33 _Objects_Allocator_lock(); 33 34 the_extension = _Extension_Get( id, &location ); 34 35 switch ( location ) { … … 36 37 _User_extensions_Remove_set( &the_extension->Extension ); 37 38 _Objects_Close( &_Extension_Information, &the_extension->Object ); 39 _Objects_Put( &the_extension->Object ); 38 40 _Extension_Free( the_extension ); 39 _Objects_ Put( &the_extension->Object);41 _Objects_Allocator_unlock(); 40 42 return RTEMS_SUCCESSFUL; 41 43 … … 47 49 } 48 50 51 _Objects_Allocator_unlock(); 52 49 53 return RTEMS_INVALID_ID; 50 54 }
Note: See TracChangeset
for help on using the changeset viewer.