Browse Source

fix mutex

MX 1 year ago
parent
commit
bc4e5f0d8d

+ 1 - 1
apps_source_code/counter/counter.c

@@ -20,7 +20,7 @@ typedef struct {
     FuriMessageQueue* input_queue;
     ViewPort* view_port;
     Gui* gui;
-    FuriMutex** mutex;
+    FuriMutex* mutex;
     NotificationApp* notifications;
 
     int count;

+ 1 - 1
apps_source_code/flipper_passgen/passgen.c

@@ -62,7 +62,7 @@ typedef struct {
     FuriMessageQueue* input_queue;
     ViewPort* view_port;
     Gui* gui;
-    FuriMutex** mutex;
+    FuriMutex* mutex;
     NotificationApp* notify;
     const char* alphabet;
     char password[PASSGEN_MAX_LENGTH + 1];

+ 1 - 1
apps_source_code/flipperzero-slots/slotmachine.c

@@ -24,7 +24,7 @@ typedef struct {
     Gui* gui; // container gui
     ViewPort* view_port; // current viewport
     FuriMessageQueue* input_queue; // Input Events queue
-    FuriMutex** model_mutex; // mutex for safe threads
+    FuriMutex* model_mutex; // mutex for safe threads
     uint16_t bet;
     double money, winamount;
     SlotColumn* columns[4];

+ 1 - 1
apps_source_code/videopoker/poker.c

@@ -38,7 +38,7 @@ typedef struct {
 } PokerPlayer_card;
 
 typedef struct {
-    FuriMutex** model_mutex;
+    FuriMutex* model_mutex;
     FuriMessageQueue* event_queue;
     ViewPort* view_port;
     Gui* gui;

+ 1 - 1
base_pack/doom/sound.h

@@ -28,7 +28,7 @@ typedef struct {
 typedef struct {
     MusicPlayerModel* model;
     MusicPlayerWorker* worker;
-    FuriMutex** model_mutex;
+    FuriMutex* model_mutex;
 } MusicPlayer;
 
 #endif

+ 1 - 1
base_pack/game15/sandbox.c

@@ -3,7 +3,7 @@
 #include "sandbox.h"
 
 FuriMessageQueue* sandbox_event_queue;
-FuriMutex** sandbox_mutex;
+FuriMutex* sandbox_mutex;
 ViewPort* sandbox_view_port;
 Gui* sandbox_gui;
 FuriTimer* sandbox_timer;

+ 1 - 1
base_pack/morse_code/morse_code.c

@@ -17,7 +17,7 @@ typedef struct {
 
 typedef struct {
     MorseCodeModel* model;
-    FuriMutex** model_mutex;
+    FuriMutex* model_mutex;
 
     FuriMessageQueue* input_queue;
 

+ 1 - 1
base_pack/music_player/music_player.c

@@ -28,7 +28,7 @@ typedef struct {
 
 typedef struct {
     MusicPlayerModel* model;
-    FuriMutex** model_mutex;
+    FuriMutex* model_mutex;
 
     FuriMessageQueue* input_queue;
 

+ 1 - 1
non_catalog_apps/flipperzero-qrcode/qrcode_app.c

@@ -59,7 +59,7 @@ typedef struct {
     Gui* gui;
     ViewPort* view_port;
 
-    FuriMutex** mutex;
+    FuriMutex* mutex;
     FuriString* message;
     QRCode* qrcode;
     uint8_t min_mode;

+ 1 - 1
non_catalog_apps/multi_counter/counter.c

@@ -26,7 +26,7 @@ typedef struct {
     ViewPort* view_port;
     Gui* gui;
     NotificationApp* notification;
-    FuriMutex** mutex;
+    FuriMutex* mutex;
 
     bool togglelight;
     int count;

+ 1 - 1
non_catalog_apps/music_beeper/music_beeper.c

@@ -28,7 +28,7 @@ typedef struct {
 
 typedef struct {
     MusicBeeperModel* model;
-    FuriMutex** model_mutex;
+    FuriMutex* model_mutex;
 
     FuriMessageQueue* input_queue;