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/sp09 | |
parent | Moved _Thread_Information -> _RTEMS_tasks_Information. (diff) | |
download | rtems-7f6a24abdd1793e394e4d5d49de1f4ca0e00297a.tar.bz2 |
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/sp09')
-rw-r--r-- | testsuites/sptests/sp09/screen05.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/testsuites/sptests/sp09/screen05.c b/testsuites/sptests/sp09/screen05.c index 2ba984aba2..c47a25f89d 100644 --- a/testsuites/sptests/sp09/screen05.c +++ b/testsuites/sptests/sp09/screen05.c @@ -23,7 +23,13 @@ void Screen5() { rtems_status_code status; - status = rtems_semaphore_create( 0, 1, RTEMS_DEFAULT_ATTRIBUTES, &Junk_id ); + status = rtems_semaphore_create( + 0, + 1, + RTEMS_DEFAULT_ATTRIBUTES, + RTEMS_NO_PRIORITY, + &Junk_id + ); fatal_directive_status( status, RTEMS_INVALID_NAME, @@ -35,6 +41,7 @@ void Screen5() Semaphore_name[ 1 ], 1, RTEMS_DEFAULT_ATTRIBUTES, + RTEMS_NO_PRIORITY, &Semaphore_id[ 1 ] ); directive_failed( status, "rtems_semaphore_create" ); @@ -44,6 +51,7 @@ void Screen5() Semaphore_name[ 2 ], 1, RTEMS_BINARY_SEMAPHORE, + RTEMS_NO_PRIORITY, &Semaphore_id[ 2 ] ); directive_failed( status, "rtems_semaphore_create" ); @@ -54,7 +62,9 @@ void Screen5() Semaphore_name[ 3 ], 1, RTEMS_DEFAULT_ATTRIBUTES, - &Junk_id); + RTEMS_NO_PRIORITY, + &Junk_id + ); } while (status == RTEMS_SUCCESSFUL); fatal_directive_status( @@ -68,6 +78,7 @@ void Screen5() Semaphore_name[ 1 ], 1, RTEMS_INHERIT_PRIORITY | RTEMS_BINARY_SEMAPHORE | RTEMS_FIFO, + RTEMS_NO_PRIORITY, &Junk_id ); fatal_directive_status( @@ -81,6 +92,7 @@ void Screen5() Semaphore_name[ 1 ], 1, RTEMS_INHERIT_PRIORITY | RTEMS_COUNTING_SEMAPHORE | RTEMS_PRIORITY, + RTEMS_NO_PRIORITY, &Junk_id ); fatal_directive_status( @@ -94,6 +106,7 @@ void Screen5() Semaphore_name[ 1 ], 2, RTEMS_BINARY_SEMAPHORE, + RTEMS_NO_PRIORITY, &Junk_id ); fatal_directive_status( @@ -107,6 +120,7 @@ void Screen5() Semaphore_name[ 3 ], 1, RTEMS_GLOBAL, + RTEMS_NO_PRIORITY, &Junk_id ); fatal_directive_status( |