diff options
Diffstat (limited to 'testsuites/tmtests/tm13/task1.c')
-rw-r--r-- | testsuites/tmtests/tm13/task1.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/testsuites/tmtests/tm13/task1.c b/testsuites/tmtests/tm13/task1.c index 28ff2bf149..32ca67c785 100644 --- a/testsuites/tmtests/tm13/task1.c +++ b/testsuites/tmtests/tm13/task1.c @@ -8,7 +8,7 @@ * to the copyright license under the clause at DFARS 252.227-7013. This * notice must appear in all copies of this file and its derivatives. * - * $Id$ + * task1.c,v 1.2 1995/05/31 17:16:13 joel Exp */ #include "system.h" @@ -77,6 +77,7 @@ rtems_task test_init( status = rtems_message_queue_create( rtems_build_name( 'M', 'Q', '1', ' ' ), OPERATION_COUNT, + 16, RTEMS_DEFAULT_ATTRIBUTES, &Queue_id ); @@ -105,30 +106,36 @@ rtems_task test_init( } Timer_initialize(); - (void) rtems_message_queue_urgent( Queue_id, (long (*)[4]) Buffer ); + (void) rtems_message_queue_urgent( Queue_id, (long (*)[4]) Buffer, 16 ); } rtems_task Middle_tasks( rtems_task_argument argument ) { + rtems_unsigned32 size; + (void) rtems_message_queue_receive( Queue_id, (long (*)[4]) Buffer, + &size, RTEMS_DEFAULT_OPTIONS, RTEMS_NO_TIMEOUT ); - (void) rtems_message_queue_urgent( Queue_id, (long (*)[4]) Buffer ); + (void) rtems_message_queue_urgent( Queue_id, (long (*)[4]) Buffer, size ); } rtems_task High_task( rtems_task_argument argument ) { + rtems_unsigned32 size; + (void) rtems_message_queue_receive( Queue_id, (long (*)[4]) Buffer, + &size, RTEMS_DEFAULT_OPTIONS, RTEMS_NO_TIMEOUT ); |