Changeset 0dd025cc in rtems


Ignore:
Timestamp:
Mar 11, 2014, 1:15:54 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
dedc1393
Parents:
92d261c
git-author:
Sebastian Huber <sebastian.huber@…> (03/11/14 13:15:54)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/12/14 06:54:57)
Message:

psxtests/psxkey07: Do not allocate task IDs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/psxkey07/init.c

    r92d261c r0dd025cc  
    6060rtems_task Init(rtems_task_argument argument)
    6161{
    62   rtems_id          *thread_p;
    6362  rtems_status_code  rc;
    6463  int                sc;
     
    9594
    9695  for ( ; ; ) {
    97     thread_p = malloc( sizeof( rtems_id ) );
    98     rtems_test_assert( thread_p );
     96    rtems_id task_id;
     97
    9998    pthread_mutex_lock( &mutex1 );
    10099
     
    105104      RTEMS_DEFAULT_MODES,
    106105      RTEMS_DEFAULT_ATTRIBUTES,
    107       thread_p
     106      &task_id
    108107    );
    109108    rtems_test_assert(
     
    113112
    114113    if ( rc == RTEMS_SUCCESSFUL ) {
    115       rc = rtems_task_start( *thread_p, Test_Thread, 0 );
     114      rc = rtems_task_start( task_id, Test_Thread, 0 );
    116115      rtems_test_assert( rc == RTEMS_SUCCESSFUL );
    117116    }
Note: See TracChangeset for help on using the changeset viewer.