diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-04-26 23:56:56 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-04-26 23:56:56 +0000 |
commit | 2b454faf137960da9b7c783a159902ac1cc02469 (patch) | |
tree | 7bb8f91f392b2eee1e292cbc70a117bdb5492be6 /cpukit/score/inline/rtems/score/object.inl | |
parent | 2001-04-26 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-2b454faf137960da9b7c783a159902ac1cc02469.tar.bz2 |
2001-04-26 Joel Sherrill <joel@OARcorp.com>
* include/rtems/score/object.h, inline/rtems/score/object.inl,
src/objectcomparenamestring.c: Address PR81 that
reworked POSIX message queues to add a descriptor separate from
the underlying message queue. This allows non-blocking to follow
the "open" not the underlying queue. As part of debugging this
it became clear that _Objects_Compare_name_string was broken
and a simple version using strncmp() was substituted.
Diffstat (limited to 'cpukit/score/inline/rtems/score/object.inl')
-rw-r--r-- | cpukit/score/inline/rtems/score/object.inl | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cpukit/score/inline/rtems/score/object.inl b/cpukit/score/inline/rtems/score/object.inl index c24e43f276..ae36d1c819 100644 --- a/cpukit/score/inline/rtems/score/object.inl +++ b/cpukit/score/inline/rtems/score/object.inl @@ -242,7 +242,8 @@ RTEMS_INLINE_ROUTINE void _Objects_Open( _Objects_Set_local_object( information, index, the_object ); if ( information->is_string ) - _Objects_Copy_name_string( name, the_object->name ); + /* _Objects_Copy_name_string( name, the_object->name ); */ + the_object->name = name; else _Objects_Copy_name_raw( name, the_object->name, information->name_length ); } @@ -266,7 +267,8 @@ RTEMS_INLINE_ROUTINE void _Objects_Close( index = _Objects_Get_index( the_object->id ); _Objects_Set_local_object( information, index, NULL ); - _Objects_Clear_name( the_object->name, information->name_length ); + /* _Objects_Clear_name( the_object->name, information->name_length ); */ + the_object->name = 0; } /*PAGE @@ -283,7 +285,8 @@ RTEMS_INLINE_ROUTINE void _Objects_Namespace_remove( Objects_Control *the_object ) { - _Objects_Clear_name( the_object->name, information->name_length ); + /* _Objects_Clear_name( the_object->name, information->name_length ); */ + the_object->name = 0; } #endif |