Split off RecursiveMutex from Mutex (#437)

* Split off RecursiveMutex from Mutex

* Fix

* Code quality
This commit is contained in:
Ken Van Hoeylandt
2025-12-28 12:30:54 +01:00
committed by GitHub
parent f48654d3dc
commit 3fc2ff8bc6
45 changed files with 185 additions and 177 deletions
@@ -25,7 +25,7 @@ enum class State {
*/
class AppInstance : public AppContext {
Mutex mutex = Mutex(Mutex::Type::Normal);
Mutex mutex;
const std::shared_ptr<AppManifest> manifest;
State state = State::Initial;
LaunchId launchId;
@@ -1,6 +1,6 @@
#pragma once
#include <Tactility/Mutex.h>
#include <Tactility/RecursiveMutex.h>
#include <string>
#include <vector>
@@ -20,7 +20,7 @@ public:
private:
Mutex mutex = Mutex(Mutex::Type::Recursive);
RecursiveMutex mutex;
std::vector<dirent> dir_entries;
std::string current_path;
std::string selected_child_entry;
@@ -1,6 +1,6 @@
#pragma once
#include <Tactility/Mutex.h>
#include <Tactility/RecursiveMutex.h>
#include <string>
#include <vector>
@@ -10,7 +10,7 @@ namespace tt::app::fileselection {
class State final {
Mutex mutex = Mutex(Mutex::Type::Recursive);
RecursiveMutex mutex;
std::vector<dirent> dir_entries;
std::string current_path;
std::string selected_child_entry;
@@ -1,7 +1,7 @@
#pragma once
#include <Tactility/service/wifi/Wifi.h>
#include <Tactility/Mutex.h>
#include <Tactility/RecursiveMutex.h>
namespace tt::app::wifimanage {
@@ -10,7 +10,7 @@ namespace tt::app::wifimanage {
*/
class State final {
Mutex mutex = Mutex(Mutex::Type::Recursive);
RecursiveMutex mutex;
bool scanning = false;
bool scannedAfterRadioOn = false;
service::wifi::RadioState radioState;