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 /cpukit/score/src/coresem.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 'cpukit/score/src/coresem.c')
-rw-r--r-- | cpukit/score/src/coresem.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/cpukit/score/src/coresem.c b/cpukit/score/src/coresem.c index 8cbaaef486..9dc878ca6c 100644 --- a/cpukit/score/src/coresem.c +++ b/cpukit/score/src/coresem.c @@ -36,20 +36,16 @@ * * Input parameters: * the_semaphore - the semaphore control block to initialize - * the_class - the API class of the object * the_semaphore_attributes - the attributes specified at create time * initial_value - semaphore's initial value - * proxy_extract_callout - MP specific extract callout * * Output parameters: NONE */ void _CORE_semaphore_Initialize( CORE_semaphore_Control *the_semaphore, - Objects_Classes the_class, CORE_semaphore_Attributes *the_semaphore_attributes, - unsigned32 initial_value, - Thread_queue_Extract_callout proxy_extract_callout + unsigned32 initial_value ) { @@ -58,11 +54,9 @@ void _CORE_semaphore_Initialize( _Thread_queue_Initialize( &the_semaphore->Wait_queue, - the_class, _CORE_semaphore_Is_priority( the_semaphore_attributes ) ? THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO, STATES_WAITING_FOR_SEMAPHORE, - proxy_extract_callout, CORE_SEMAPHORE_TIMEOUT ); } |