#3318: Improve INTERNAL_ERROR_THREAD_EXITTED to show the id and thread name
--------------------------+--------------------
  Reporter:  mfletcher    |      Owner:  (none)
      Type:  enhancement  |     Status:  new
  Priority:  low          |  Milestone:
 Component:  rtems        |    Version:
  Severity:  normal       |   Keywords:
Blocked By:               |   Blocking:
--------------------------+--------------------
 It might be more helpful i the case of a thread exit to output some
 information about that thread to make tracking it down simpler.

 This example works ok.

 static void thread_exitted_print_info(rtems_tcb *tcb)
 {
   printf("Thread exited: %s (id %d)\n", tcb->Object.name, tcb->Object.id)
 }

 /* In your configuration: */
 #define CONFIGURE_INITIAL_EXTENSIONS \
   { .thread_exitted = thread_exitted_print_info }

--
Ticket URL: <http://devel.rtems.org/ticket/3318>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
_______________________________________________
bugs mailing list
bugs@rtems.org
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to