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:
あく
2022-02-19 02:38:44 +03:00
committed by GitHub
parent ddd909faa0
commit 3c77ae2eb8
4 changed files with 25 additions and 9 deletions

View File

@@ -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 */