Changeset f7ba2945 in rtems


Ignore:
Timestamp:
01/31/17 08:01:37 (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
70f559d8
Parents:
e366f77
git-author:
Sebastian Huber <sebastian.huber@…> (01/31/17 08:01:37)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/31/17 08:38:08)
Message:

monitor: Add support for BSD wakeup messages

File:
1 edited

Legend:

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

    re366f77 rf7ba2945  
    2424    const Thread_queue_Queue *queue;
    2525
     26    canonical_task->wait_id = 0;
     27    canonical_task->wait_name[0] = '\0';
     28
    2629    _Thread_queue_Context_initialize( &queue_context );
    2730    _Thread_Wait_acquire( rtems_thread, &queue_context );
     
    3639        &canonical_task->wait_id
    3740      );
    38     } else {
    39       canonical_task->wait_id = 0;
    40       canonical_task->wait_name[0] = '\0';
     41    } else if (
     42      (rtems_thread->current_state & STATES_WAITING_FOR_BSD_WAKEUP) != 0
     43    ) {
     44      const char *wmesg;
     45
     46      wmesg = rtems_thread->Wait.return_argument_second.immutable_object;
     47
     48      if (wmesg != NULL) {
     49        strlcpy(
     50          canonical_task->wait_name,
     51          wmesg,
     52          sizeof(canonical_task->wait_name)
     53        );
     54      }
    4155    }
    4256
Note: See TracChangeset for help on using the changeset viewer.