version 4.0.0_alpha

in almost all methods removed timeouts in milliseconds, replaced to PISystemTime
PITimer rewrite, remove internal impl, now only thread implementation, API similar to PIThread
PITimer API no longer pass void*
PIPeer, PIConnection improved stability on reinit and exit
PISystemTime new methods
pisd now exit without hanging
This commit is contained in:
2024-07-30 14:18:02 +03:00
parent f07c9cbce8
commit 1c7fc39b6c
58 changed files with 677 additions and 1191 deletions

View File

@@ -19,6 +19,8 @@
#include "pibroadcast.h"
#include "piliterals_time.h"
/** \class PIBroadcast
* \brief Broadcast for all interfaces, including loopback
*
@@ -223,7 +225,7 @@ void PIBroadcast::startRead() {
if (!isRunning()) {
_started = false;
reinit();
PIThread::start(3000);
PIThread::start(3_s);
}
if (_send_only) return;
PIMutexLocker ml(mcast_mutex);

View File

@@ -24,6 +24,7 @@
#include "pistreampacker.h"
#include "piiodevice.h"
#include "piliterals_bytes.h"
#ifdef __GNUC__
# pragma GCC diagnostic pop
#endif
@@ -52,7 +53,7 @@ PIStreamPacker::PIStreamPacker(PIIODevice * dev): PIObject() {
aggressive_optimization = true;
packet_size = -1;
size_crypted_size = sizeof(int);
crypt_frag_size = 1024 * 1024;
crypt_frag_size = 1_MiB;
max_packet_size = 1400;
packet_sign = 0xAFBE;
assignDevice(dev);