Skip to content

Commit 922b656

Browse files
committed
Fix ThisThread::get_name definition
1 parent b53dc66 commit 922b656

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

TESTS/mbedmicro-rtos-mbed/threads/main.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,9 +500,8 @@ void test_thread_name()
500500

501501
const char tname[] = "Amazing thread";
502502
Thread t(osPriorityNormal, THREAD_STACK_SIZE, NULL, tname);
503-
t.start(callback(thread_wait_flags));
504503
TEST_ASSERT_EQUAL(strcmp(tname, t.get_name()), 0);
505-
t.flags_set(0x1);
504+
t.start([&] { TEST_ASSERT_EQUAL(strcmp(tname, ThisThread::get_name()), 0); });
506505
t.join();
507506
}
508507

rtos/source/ThisThread.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ osThreadId_t ThisThread::get_id()
272272
#endif
273273
}
274274

275-
const char *get_name()
275+
const char *ThisThread::get_name()
276276
{
277277
#if MBED_CONF_RTOS_PRESENT
278278
osThreadId_t id = osThreadGetId();

0 commit comments

Comments
 (0)