Nfc: replace cmsis thread with furi, fix condition race in thread stop routine. (#1003)
* Nfc: replace cmsis thread with furi, fix condition race on thread stop routine. * Nfc: fix memory leak * FuriCore, CMSIS: properly handle thread names before scheduler start
This commit is contained in:
@@ -578,8 +578,10 @@ const char *osThreadGetName (osThreadId_t thread_id) {
|
||||
|
||||
if ((IRQ_Context() != 0U) || (hTask == NULL)) {
|
||||
name = NULL;
|
||||
} else {
|
||||
} else if(osKernelGetState() == osKernelRunning) {
|
||||
name = pcTaskGetName (hTask);
|
||||
} else {
|
||||
name = NULL;
|
||||
}
|
||||
|
||||
/* Return name as null-terminated string */
|
||||
|
Reference in New Issue
Block a user