diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-04-26 21:20:31 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-02 07:46:15 +0200 |
commit | c8982e5f6a4857444676165deab1e08dc91a6847 (patch) | |
tree | 9862d54650522b55afac8a4e1b84ab078a69dff5 /cpukit/posix/src/mqueue.c | |
parent | rtems: Avoid Giant lock for message queues (diff) | |
download | rtems-c8982e5f6a4857444676165deab1e08dc91a6847.tar.bz2 |
posix: Simplify message queues
The mq_open() function returns a descriptor to a POSIX message queue
object identified by a name. This is similar to sem_open(). In
contrast to the POSIX semaphore the POSIX message queues use a separate
object for the descriptor. This extra object is superfluous, since the
object identifier can be used directly for this purpose, just like for
the semaphores.
Update #2702.
Update #2555.
Diffstat (limited to 'cpukit/posix/src/mqueue.c')
-rw-r--r-- | cpukit/posix/src/mqueue.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/cpukit/posix/src/mqueue.c b/cpukit/posix/src/mqueue.c index e5fc3a0b5d..fca9929294 100644 --- a/cpukit/posix/src/mqueue.c +++ b/cpukit/posix/src/mqueue.c @@ -61,17 +61,6 @@ static void _POSIX_Message_queue_Manager_initialization(void) _POSIX_PATH_MAX, /* maximum length of each object's name */ NULL /* Proxy extraction support callout */ ); - _Objects_Initialize_information( - &_POSIX_Message_queue_Information_fds, - OBJECTS_POSIX_API, - OBJECTS_POSIX_MESSAGE_QUEUE_FDS, - Configuration_POSIX_API.maximum_message_queue_descriptors, - sizeof( POSIX_Message_queue_Control_fd ), - /* size of this object's control block */ - true, /* true if names for this object are strings */ - NAME_MAX, /* maximum length of each object's name */ - NULL /* Proxy extraction support callout */ - ); } RTEMS_SYSINIT_ITEM( |