Починил клинч с мьютексом Провайдера ДБ

This commit is contained in:
2025-08-13 16:15:28 +03:00
parent 842118cbea
commit ef12d4f7a9
7 changed files with 74 additions and 65 deletions

View File

@@ -1,4 +1,5 @@
#include "processingsystem.h"
#include "providerdblms.h"
#include <clienthandler.h>
@@ -7,7 +8,10 @@ ProcessingSystem::ProcessingSystem(ProviderDBLMS* providerDBLMS, UpdateControlle
updateController(nullptr),
providerDBLMS(nullptr)
{
this->providerDBLMS = providerDBLMS;
//this->providerDBLMS = providerDBLMS;
this->updateController = updateController;
}
@@ -16,6 +20,10 @@ void ProcessingSystem::initialize(MultiThreadServer *server, DataParser *dataPar
UpdateController *updateController,
ChatSystem *chatSystem)
{
this->providerDBLMS = new ProviderDBLMS(/*parent*/nullptr);
this->providerDBLMS->ConnectionToDB();
this->providerDBLMS->deAuthorizationAll();
this->commonClientServer = commonClientHandler;
this->dataParser = dataParser;
this->server = server;