diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-07-01 22:30:12 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-07-01 22:30:12 +0000 |
commit | ef9505a92f6c9c962dc2649f49002311466e009e (patch) | |
tree | 5a869b6101918ff8b37f19ca2b36f0b835d69d58 /c/src/exec/score/src/threadqextractwithproxy.c | |
parent | 2002-07-01 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-ef9505a92f6c9c962dc2649f49002311466e009e.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/Makefile.am, include/rtems/score/coremsg.h,
include/rtems/score/coremutex.h, include/rtems/score/coresem.h,
include/rtems/score/object.h, include/rtems/score/threadq.h,
inline/rtems/score/object.inl, inline/rtems/score/thread.inl,
macros/rtems/score/object.inl, src/Makefile.am, src/coremsg.c,
src/coremutex.c, src/coresem.c, src/mpci.c,
src/objectcomparenameraw.c, src/objectextendinformation.c,
src/objectinitializeinformation.c, src/objectnametoid.c,
src/thread.c, src/threadclose.c, src/threadget.c, src/threadq.c,
src/threadqextractwithproxy.c: Modified as part of above.
* include/rtems/score/apimutex.h, src/objectgetnoprotection.c: New
files.
Diffstat (limited to '')
-rw-r--r-- | c/src/exec/score/src/threadqextractwithproxy.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/c/src/exec/score/src/threadqextractwithproxy.c b/c/src/exec/score/src/threadqextractwithproxy.c index 68b3daff5b..5c47b215ae 100644 --- a/c/src/exec/score/src/threadqextractwithproxy.c +++ b/c/src/exec/score/src/threadqextractwithproxy.c @@ -26,7 +26,7 @@ * _Thread_queue_Extract_with_proxy * * This routine extracts the_thread from the_thread_queue - * and insures that if there is a proxy for this task on + * and ensures that if there is a proxy for this task on * another node, it is also dealt with. * * XXX @@ -37,8 +37,8 @@ boolean _Thread_queue_Extract_with_proxy( ) { States_Control state; - Objects_Classes the_class; - Thread_queue_Extract_callout proxy_extract_callout; + Objects_Information *the_information; + Objects_Thread_queue_Extract_callout proxy_extract_callout; state = the_thread->current_state; @@ -46,9 +46,10 @@ boolean _Thread_queue_Extract_with_proxy( if ( _States_Is_waiting_for_rpc_reply( state ) && _States_Is_locally_blocked( state ) ) { - the_class = _Objects_Get_class( the_thread->Wait.id ); + the_information = _Objects_Get_information( the_thread->Wait.id ); - proxy_extract_callout = _Thread_queue_Extract_table[ the_class ]; + proxy_extract_callout = + (Objects_Thread_queue_Extract_callout) the_information->extract; if ( proxy_extract_callout ) (*proxy_extract_callout)( the_thread ); |