diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-07-01 22:32:31 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-07-01 22:32:31 +0000 |
commit | 90015e7f864274881572362aa19530b608e5b540 (patch) | |
tree | 18898ad469cb28aeccefd93b79d7452767df0d59 /c/src/exec/rtems/src/msgqcreate.c | |
parent | 2002-07-01 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-90015e7f864274881572362aa19530b608e5b540.tar.bz2 |
2002-07-01 Joel Sherrill <joel@OARcorp.com>
* Mega patch merge to change the format of the object IDs to
loosen the dependency between the SCORE and the various APIs.
There was considerable work to simplify the object name management
and it appears that the name_table field is no longer needed.
This patch also includes the addition of the internal mutex
which is currently only used to protect some types of allocation
and deallocation. This significantly can reduce context
switch latency under certain circumstances. In particular,
some heap/region operations were O(n) and had dispatching
disabled. This should help enormously. With this merge,
the patch is not as clean as it should be. In particular,
the documentation has not been modified to reflect the new object
ID layout, the IDs in the test screens are not updated, and
_Objects_Get_information needs to be a real routine not inlined.
As part of this patch a lot of MP code for thread/proxy blocking
was made conditional and cleaned up.
* include/rtems.h, inline/rtems/rtems/region.inl,
macros/rtems/rtems/region.inl, src/dpmem.c, src/dpmemcreate.c,
src/msg.c, src/msgqcreate.c, src/part.c, src/partcreate.c,
src/ratemon.c, src/ratemoncreate.c, src/region.c, src/regioncreate.c,
src/regiondelete.c, src/regionextend.c, src/regiongetinfo.c,
src/regiongetsegment.c, src/regiongetsegmentsize.c,
src/regionident.c, src/regionreturnsegment.c, src/rtemstimer.c,
src/sem.c, src/semcreate.c, src/taskcreate.c, src/taskident.c,
src/tasks.c, src/timercreate.c: Modified as part of above.
Diffstat (limited to 'c/src/exec/rtems/src/msgqcreate.c')
-rw-r--r-- | c/src/exec/rtems/src/msgqcreate.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/c/src/exec/rtems/src/msgqcreate.c b/c/src/exec/rtems/src/msgqcreate.c index 24bc35993d..537704360b 100644 --- a/c/src/exec/rtems/src/msgqcreate.c +++ b/c/src/exec/rtems/src/msgqcreate.c @@ -60,7 +60,6 @@ rtems_status_code rtems_message_queue_create( { register Message_queue_Control *the_message_queue; CORE_message_queue_Attributes the_msgq_attributes; - void *handler; #if defined(RTEMS_MULTIPROCESSING) boolean is_global; #endif @@ -119,18 +118,12 @@ rtems_status_code rtems_message_queue_create( else the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_FIFO; - handler = NULL; -#if defined(RTEMS_MULTIPROCESSING) - handler = _Message_queue_MP_Send_extract_proxy; -#endif - if ( ! _CORE_message_queue_Initialize( &the_message_queue->message_queue, - OBJECTS_RTEMS_MESSAGE_QUEUES, &the_msgq_attributes, count, - max_message_size, - handler ) ) { + max_message_size + ) ) { #if defined(RTEMS_MULTIPROCESSING) if ( is_global ) _Objects_MP_Close( @@ -145,7 +138,7 @@ rtems_status_code rtems_message_queue_create( _Objects_Open( &_Message_queue_Information, &the_message_queue->Object, - &name + name ); *id = the_message_queue->Object.id; |