[RTEMS Project] #3318: Improve INTERNAL_ERROR_THREAD_EXITTED to show the id and thread name

RTEMS trac trac at rtems.org
Fri Mar 2 10:12:31 UTC 2018


#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


More information about the bugs mailing list