diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-10-25 12:05:53 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-10-29 10:33:33 +0100 |
commit | 70382718450c6b5d83232188cc71b6c795048a27 (patch) | |
tree | 454cdea0181e12e183532d24cc7483fa28c9a09e /cpukit/include/rtems/posix | |
parent | score: Remove bogus thread object name support (diff) | |
download | rtems-70382718450c6b5d83232188cc71b6c795048a27.tar.bz2 |
Remove RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES
Enable support for string objects names unconditionally. Add const
qualifier throughout. Split _Objects_Namespace_remove() into
_Objects_Namespace_remove_u32() and _Objects_Namespace_remove_string()
to avoid an unnecessary dependency on _Workspace_Free().
Update #2514.
Diffstat (limited to 'cpukit/include/rtems/posix')
-rw-r--r-- | cpukit/include/rtems/posix/mqueueimpl.h | 6 | ||||
-rw-r--r-- | cpukit/include/rtems/posix/semaphoreimpl.h | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/cpukit/include/rtems/posix/mqueueimpl.h b/cpukit/include/rtems/posix/mqueueimpl.h index 6813a3ef88..28381ad54b 100644 --- a/cpukit/include/rtems/posix/mqueueimpl.h +++ b/cpukit/include/rtems/posix/mqueueimpl.h @@ -156,8 +156,10 @@ RTEMS_INLINE_ROUTINE void _POSIX_Message_queue_Namespace_remove ( POSIX_Message_queue_Control *the_mq ) { - _Objects_Namespace_remove( - &_POSIX_Message_queue_Information, &the_mq->Object ); + _Objects_Namespace_remove_string( + &_POSIX_Message_queue_Information, + &the_mq->Object + ); } RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control * diff --git a/cpukit/include/rtems/posix/semaphoreimpl.h b/cpukit/include/rtems/posix/semaphoreimpl.h index fd17743699..5ae6a300fa 100644 --- a/cpukit/include/rtems/posix/semaphoreimpl.h +++ b/cpukit/include/rtems/posix/semaphoreimpl.h @@ -107,8 +107,10 @@ RTEMS_INLINE_ROUTINE void _POSIX_Semaphore_Namespace_remove ( POSIX_Semaphore_Control *the_semaphore ) { - _Objects_Namespace_remove( - &_POSIX_Semaphore_Information, &the_semaphore->Object ); + _Objects_Namespace_remove_string( + &_POSIX_Semaphore_Information, + &the_semaphore->Object + ); } RTEMS_INLINE_ROUTINE POSIX_Semaphore_Control *_POSIX_Semaphore_Get_by_name( |