[FL-1880] Dialogs: fix semaphore lock (#722)

* Dialogs: fix queued message lock
* Dialogs: file select, fix queued message lock
* Dialogs: file select, free context after freeing callback holder
* Dialogs: better lock, separated wait and free

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
SG
2021-09-25 02:36:53 +10:00
committed by GitHub
parent d3b58f732f
commit acb8508249
6 changed files with 40 additions and 27 deletions

View File

@@ -1,6 +1,7 @@
#pragma once
#include <furi.h>
#include "dialogs-i.h"
#include "dialogs-api-lock.h"
#ifdef __cplusplus
extern "C" {
@@ -34,7 +35,7 @@ typedef enum {
} DialogsAppCommand;
typedef struct {
osSemaphoreId_t semaphore;
FuriApiLock lock;
DialogsAppCommand command;
DialogsAppData* data;
DialogsAppReturn* return_data;