@@ -32,13 +32,13 @@ namespace mbed {
3232 */
3333template
3434<osPriority Priority, size_t QueueSize, size_t StackSize>
35- EventQueue *do_shared_event_queue_with_thread ()
35+ EventQueue *do_shared_event_queue_with_thread (const char *name )
3636{
3737 static uint64_t queue_buffer[QueueSize / sizeof (uint64_t )];
3838 static EventQueue queue (sizeof queue_buffer, (unsigned char *) queue_buffer);
3939
4040 static uint64_t stack[StackSize / sizeof (uint64_t )];
41- static Thread thread (Priority, StackSize, (unsigned char *) stack);
41+ static Thread thread (Priority, StackSize, (unsigned char *) stack, name );
4242
4343 Thread::State state = thread.get_state ();
4444 if (state == Thread::Inactive || state == Thread::Deleted) {
@@ -62,14 +62,14 @@ EventQueue *mbed_event_queue()
6262
6363 return &queue;
6464#else
65- return do_shared_event_queue_with_thread<osPriorityNormal, MBED_CONF_EVENTS_SHARED_EVENTSIZE, MBED_CONF_EVENTS_SHARED_STACKSIZE>();
65+ return do_shared_event_queue_with_thread<osPriorityNormal, MBED_CONF_EVENTS_SHARED_EVENTSIZE, MBED_CONF_EVENTS_SHARED_STACKSIZE>(" shared_event_queue " );
6666#endif
6767}
6868
6969#ifdef MBED_CONF_RTOS_PRESENT
7070EventQueue *mbed_highprio_event_queue ()
7171{
72- return do_shared_event_queue_with_thread<osPriorityHigh, MBED_CONF_EVENTS_SHARED_HIGHPRIO_EVENTSIZE, MBED_CONF_EVENTS_SHARED_HIGHPRIO_STACKSIZE>();
72+ return do_shared_event_queue_with_thread<osPriorityHigh, MBED_CONF_EVENTS_SHARED_HIGHPRIO_EVENTSIZE, MBED_CONF_EVENTS_SHARED_HIGHPRIO_STACKSIZE>(" shared_highprio_event_queue " );
7373}
7474#endif
7575
0 commit comments