Commit 0bcf4930 authored by Pavel Vainerman's avatar Pavel Vainerman

(unet2): увеличил максимально-разрешённое количество датчиков

(аналоговых и дискретных)
parent ecf1856f
...@@ -41,8 +41,8 @@ namespace UniSetUDP ...@@ -41,8 +41,8 @@ namespace UniSetUDP
friend std::ostream& operator<<( std::ostream& os, UDPAData& p ); friend std::ostream& operator<<( std::ostream& os, UDPAData& p );
}__attribute__((packed)); }__attribute__((packed));
static const size_t MaxACount = 100; static const size_t MaxACount = 200;
static const size_t MaxDCount = 256; static const size_t MaxDCount = 400;
static const size_t MaxDDataCount = MaxDCount / sizeof(unsigned char); static const size_t MaxDDataCount = MaxDCount / sizeof(unsigned char);
struct UDPPacket struct UDPPacket
......
...@@ -370,7 +370,7 @@ bool UNetReceiver::recv() ...@@ -370,7 +370,7 @@ bool UNetReceiver::recv()
#endif #endif
{ // lock qpack { // lock qpack
uniset_mutex_lock l(packMutex,500); uniset_mutex_lock l(packMutex,2000);
if( !waitClean ) if( !waitClean )
{ {
qpack.push(pack); qpack.push(pack);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment