git-svn-id: svn://db.shs.com.ru/pip@756 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2019-02-18 18:30:51 +00:00
parent 0af7eabf56
commit 217947cc89
16 changed files with 296 additions and 217 deletions

View File

@@ -1210,6 +1210,14 @@ PIConnection::Extractor::~Extractor() {
}
PIConnection::Sender::Sender(PIConnection * parent_): parent(parent_), int_(0.f) {
setName("__S__.PIConnection.Sender");
needLockRun(true);
}
void PIConnection::Sender::tick(void * , int) {
if (parent == 0) return;
PIByteArray data;
@@ -1225,6 +1233,8 @@ void PIConnection::Sender::tick(void * , int) {
}
void PIConnection::unboundExtractor(PIPacketExtractor * pe) {
if (pe == 0) return;
channels_.remove(pe);

View File

@@ -383,7 +383,7 @@ private:
class PIP_EXPORT Sender: public PITimer {
PIOBJECT_SUBCLASS(Sender, PIObject)
public:
Sender(PIConnection * parent_ = 0): parent(parent_), int_(0.f) {needLockRun(true);}
Sender(PIConnection * parent_ = 0);
~Sender() {stop();}
PIConnection * parent;
PIVector<PIIODevice * > devices;

View File

@@ -206,6 +206,8 @@ public:
//! \}
private:
NO_COPY_CLASS(PIDiagnostics)
struct Entry {
Entry() {bytes_ok = bytes_fail = 0; cnt_ok = cnt_fail = 0; empty = true;}
ullong bytes_ok;