Ignore:
Timestamp:
Jan 22, 2017, 2:43:17 PM (4 years ago)
Author:
Daniel Hellstrom <daniel@…>
Branches:
5, master
Children:
94fb377b
Parents:
72ec13e
git-author:
Daniel Hellstrom <daniel@…> (01/22/17 14:43:17)
git-committer:
Daniel Hellstrom <daniel@…> (03/06/17 06:54:55)
Message:

leon, grpsw_pkt: set unique work-task name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/shared/spw/grspw_pkt.c

    r72ec13e r8acfa94  
    31613161        rtems_id tid;
    31623162        int created_msgq = 0;
     3163        static char work_name = 'A';
    31633164
    31643165        if (pMsgQ == NULL)
     
    31703171
    31713172                if (rtems_message_queue_create(
    3172                         rtems_build_name('S', 'G', 'L', 'Q'),
     3173                        rtems_build_name('S', 'G', 'Q', work_name),
    31733174                        msgMax, 4, RTEMS_FIFO, pMsgQ) !=
    31743175                        RTEMS_SUCCESSFUL)
     
    31823183                stack = RTEMS_MINIMUM_STACK_SIZE; /* default stack size */
    31833184
    3184         if (rtems_task_create(rtems_build_name('S', 'G', 'L', 'T'),
     3185        if (rtems_task_create(rtems_build_name('S', 'G', 'T', work_name),
    31853186                prio, stack, RTEMS_PREEMPT | RTEMS_NO_ASR,
    31863187                RTEMS_NO_FLOATING_POINT, &tid) != RTEMS_SUCCESSFUL)
     
    31953196                rtems_message_queue_delete(*pMsgQ);
    31963197                *pMsgQ = OBJECTS_ID_NONE;
     3198        } else {
     3199                if (++work_name > 'Z')
     3200                        work_name = 'A';
    31973201        }
    31983202        return tid;
Note: See TracChangeset for help on using the changeset viewer.