Removed multithtreading (thanks windows)
This commit is contained in:
parent
e0135b6753
commit
d62fda675a
8 changed files with 23 additions and 24 deletions
|
|
@ -5,7 +5,7 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
// #include <mutex>
|
||||
|
||||
#include "portParametersGeneric.h"
|
||||
|
||||
|
|
@ -15,7 +15,7 @@ typedef _modbus modbus_t;
|
|||
class Port {
|
||||
private:
|
||||
std::shared_ptr<modbus_t*> modbus_context;
|
||||
std::mutex *modbus_context_mutex;
|
||||
// std::mutex *modbus_context_mutex;
|
||||
|
||||
uint16_t portStartAddress;
|
||||
|
||||
|
|
@ -25,7 +25,7 @@ class Port {
|
|||
bool currentFixed;
|
||||
|
||||
public:
|
||||
Port(std::shared_ptr<modbus_t*> modbus_context, std::mutex *modbus_context_mutex, uint16_t portStartAddress);
|
||||
Port(std::shared_ptr<modbus_t*> modbus_context, uint16_t portStartAddress);
|
||||
|
||||
std::vector<std::shared_ptr<PortParameter>> parameters;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue