Ignore:
Timestamp:
Dec 23, 2016, 3:02:07 PM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
4e07d9b3
Parents:
c6000d2b
git-author:
Sebastian Huber <sebastian.huber@…> (12/23/16 15:02:07)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/11/17 07:16:27)
Message:

score: Add STATES_THREAD_QUEUE_WITH_IDENTIFIER

Add thread state bit to identify thread queues that are embedded in an
object with identifier.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libmisc/monitor/mon-prmisc.c

    rc6000d2b r9a448aab  
    113113}
    114114
     115#define WITH_ID(state) (STATES_THREAD_QUEUE_WITH_IDENTIFIER | state)
     116
    115117static const rtems_assoc_t rtems_monitor_state_assoc[] = {
    116118    { "DELAY",  STATES_DELAYING, 0 },
     
    118120    { "LIFE",   STATES_LIFE_IS_CHANGING, 0 },
    119121    { "SUSP",   STATES_SUSPENDED, 0 },
    120     { "Wbar",   STATES_WAITING_FOR_BARRIER, 0 },
    121     { "Wcvar",  STATES_WAITING_FOR_CONDITION_VARIABLE, 0 },
     122    { "Wbar",   WITH_ID(STATES_WAITING_FOR_BARRIER), 0 },
     123    { "Wcvar",  WITH_ID(STATES_WAITING_FOR_CONDITION_VARIABLE), 0 },
    122124    { "Wevnt",  STATES_WAITING_FOR_EVENT, 0 },
    123125    { "Wisig",  STATES_INTERRUPTIBLE_BY_SIGNAL, 0 },
    124126    { "Wjatx",  STATES_WAITING_FOR_JOIN_AT_EXIT, 0 },
    125127    { "Wjoin",  STATES_WAITING_FOR_JOIN, 0 },
    126     { "Wmsg" ,  STATES_WAITING_FOR_MESSAGE, 0 },
    127     { "Wmutex", STATES_WAITING_FOR_MUTEX, 0 },
     128    { "Wmsg" ,  WITH_ID(STATES_WAITING_FOR_MESSAGE), 0 },
     129    { "Wmutex", WITH_ID(STATES_WAITING_FOR_MUTEX), 0 },
    128130    { "WRATE",  STATES_WAITING_FOR_PERIOD, 0 },
    129131    { "Wrpc",   STATES_WAITING_FOR_RPC_REPLY, 0 },
    130     { "Wrwlk",  STATES_WAITING_FOR_RWLOCK, 0 },
     132    { "Wrwlk",  WITH_ID(STATES_WAITING_FOR_RWLOCK), 0 },
    131133    { "Wseg",   STATES_WAITING_FOR_SEGMENT, 0 },
     134    { "Wsem",   WITH_ID(STATES_WAITING_FOR_SEMAPHORE), 0 },
     135    { "Wsig",   STATES_WAITING_FOR_SIGNAL, 0 },
     136    { "Wcvar",  STATES_WAITING_FOR_CONDITION_VARIABLE, 0 },
     137    { "Wfutex", STATES_WAITING_FOR_FUTEX, 0 },
     138    { "Wmutex", STATES_WAITING_FOR_MUTEX, 0 },
    132139    { "Wsem",   STATES_WAITING_FOR_SEMAPHORE, 0 },
    133     { "Wsig",   STATES_WAITING_FOR_SIGNAL, 0 },
    134     { "Wslcnd", STATES_WAITING_FOR_SYS_LOCK_CONDITION, 0 },
    135     { "Wslftx", STATES_WAITING_FOR_SYS_LOCK_FUTEX, 0 },
    136     { "Wslmtx", STATES_WAITING_FOR_SYS_LOCK_MUTEX, 0 },
    137     { "Wslsem", STATES_WAITING_FOR_SYS_LOCK_SEMAPHORE, 0 },
    138140    { "Wsysev", STATES_WAITING_FOR_SYSTEM_EVENT, 0 },
    139141    { "Wtime",  STATES_WAITING_FOR_TIME, 0 },
Note: See TracChangeset for help on using the changeset viewer.