mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 12:49:18 +02:00
Add security locks for material manager
thanks to @Milek7 for advice about material manager
This commit is contained in:
@@ -18,6 +18,7 @@ http://mozilla.org/MPL/2.0/.
|
||||
#include "motiontelemetry.h"
|
||||
#include "ref/discord-rpc/include/discord_rpc.h"
|
||||
#include <map>
|
||||
#include <thread>
|
||||
|
||||
#ifdef WITH_UART
|
||||
#include "uart.h"
|
||||
@@ -35,6 +36,7 @@ struct global_settings {
|
||||
/// Mapa z watkami w formacie <std::string nazwa, std::thread watek>
|
||||
/// </summary>
|
||||
std::map<std::string, std::thread> threads = {};
|
||||
std::thread::id mainThreadId = std::this_thread::get_id();
|
||||
bool shiftState{ false }; //m7todo: brzydko
|
||||
bool ctrlState{ false };
|
||||
bool altState{ false };
|
||||
|
||||
Reference in New Issue
Block a user