@@ -32,13 +32,13 @@ namespace mbed {
32
32
*/
33
33
template
34
34
<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 )
36
36
{
37
37
static uint64_t queue_buffer[QueueSize / sizeof (uint64_t )];
38
38
static EventQueue queue (sizeof queue_buffer, (unsigned char *) queue_buffer);
39
39
40
40
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 );
42
42
43
43
Thread::State state = thread.get_state ();
44
44
if (state == Thread::Inactive || state == Thread::Deleted) {
@@ -62,14 +62,14 @@ EventQueue *mbed_event_queue()
62
62
63
63
return &queue;
64
64
#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 " );
66
66
#endif
67
67
}
68
68
69
69
#ifdef MBED_CONF_RTOS_PRESENT
70
70
EventQueue *mbed_highprio_event_queue ()
71
71
{
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 " );
73
73
}
74
74
#endif
75
75
0 commit comments