diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1995-08-28 15:30:29 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1995-08-28 15:30:29 +0000 |
commit | 7f6a24abdd1793e394e4d5d49de1f4ca0e00297a (patch) | |
tree | fbdb1ec31289dabb5bf41ed769d4b40ca8cf9a9a /testsuites/sptests/sp12 | |
parent | 5250ff39f042c09503b61eb81a2c705e9b06b917 (diff) |
Added unused priority ceiling parameter to rtems_semaphore_create.
Rearranged code to created thread handler routines to initialize,
start, restart, and "close/delete" a thread.
Made internal threads their own object class. This now uses the
thread support routines for starting and initializing a thread.
Insured deleted tasks are freed to the Inactive pool associated with the
correct Information block.
Added an RTEMS API specific data area to the thread control block.
Beginnings of removing the word "rtems" from the core.
Diffstat (limited to 'testsuites/sptests/sp12')
-rw-r--r-- | testsuites/sptests/sp12/init.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/testsuites/sptests/sp12/init.c b/testsuites/sptests/sp12/init.c index dd702ca75e..3bbd0ef1c6 100644 --- a/testsuites/sptests/sp12/init.c +++ b/testsuites/sptests/sp12/init.c @@ -53,10 +53,11 @@ rtems_task Init( Semaphore_name[ 3 ] = rtems_build_name( 'S', 'M', '3', ' ' ); status = rtems_semaphore_create( - Semaphore_name[ 1 ], - 1, - RTEMS_DEFAULT_ATTRIBUTES, - &Semaphore_id[ 1 ] + Semaphore_name[ 1 ], + 1, + RTEMS_DEFAULT_ATTRIBUTES, + RTEMS_NO_PRIORITY, + &Semaphore_id[ 1 ] ); directive_failed( status, "rtems_semaphore_create of SM1" ); @@ -64,6 +65,7 @@ rtems_task Init( Semaphore_name[ 2 ], 0, RTEMS_PRIORITY, + RTEMS_NO_PRIORITY, &Semaphore_id[ 2 ] ); directive_failed( status, "rtems_semaphore_create of SM2" ); @@ -72,6 +74,7 @@ rtems_task Init( Semaphore_name[ 3 ], 1, RTEMS_DEFAULT_ATTRIBUTES, + RTEMS_NO_PRIORITY, &Semaphore_id[ 3 ] ); directive_failed( status, "rtems_semaphore_create of SM3" ); @@ -94,6 +97,7 @@ pause(); Semaphore_name[ 2 ], 0, RTEMS_BINARY_SEMAPHORE | RTEMS_PRIORITY | RTEMS_INHERIT_PRIORITY, + RTEMS_NO_PRIORITY, &Semaphore_id[ 2 ] ); directive_failed( status, "rtems_semaphore_create of priority inherit SM2" ); @@ -110,6 +114,7 @@ pause(); Semaphore_name[ 2 ], 1, RTEMS_BINARY_SEMAPHORE | RTEMS_PRIORITY | RTEMS_INHERIT_PRIORITY, + RTEMS_NO_PRIORITY, &Semaphore_id[ 2 ] ); directive_failed( status, "rtems_semaphore_create of priority inherit SM2" ); @@ -125,6 +130,7 @@ pause(); Semaphore_name[ 2 ], 0, RTEMS_PRIORITY, + RTEMS_NO_PRIORITY, &Semaphore_id[ 2 ] ); directive_failed( status, "rtems_semaphore_create of priority SM2" ); |