PIEthernet TCP improvements

git-svn-id: svn://db.shs.com.ru/pip@131 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
2015-05-18 07:12:04 +00:00
parent a4fadea95f
commit bfcdb80186
7 changed files with 23 additions and 11 deletions

View File

@@ -236,7 +236,11 @@ PIInit::PIInit() {
# ifdef ANDROID
PIStringAscii("Android");
# else
# ifdef FREE_BSD
PIStringAscii("FreeBSD");
# else
uns.sysname;
# endif
# endif
# endif
# endif

View File

@@ -274,7 +274,7 @@ void PIObject::piDisconnect(PIObject * src, const PIString & sig, PIObject * des
i--;
}
}
((PIObject*)dest)->updateConnectors();
dest->updateConnectors();
}
@@ -288,7 +288,7 @@ void PIObject::piDisconnect(PIObject * src, const PIString & sig, PIObject * des
i--;
}
}
((PIObject*)dest)->updateConnectors();
dest->updateConnectors();
}
@@ -300,7 +300,9 @@ void PIObject::piDisconnect(PIObject * src, const PIString & sig) {
PIObject * dest = cc.dest_o;
src->connections.remove(i);
i--;
#ifndef ANDROID
PIMutexLocker _mld(dest->mutex_connect, src != dest);
#endif
dest->updateConnectors();
}
}
@@ -313,7 +315,9 @@ void PIObject::piDisconnect(PIObject * src) {
PIVector<PIObject * > cv = src->connectors.toVector();
piForeach (PIObject * o, cv) {
if (o == src) continue;
#ifndef ANDROID
PIMutexLocker _mld(o->mutex_connect, src != o);
#endif
PIVector<Connection> & oc(o->connections);
for (int i = 0; i < oc.size_s(); ++i) {
//piCout << " check" << (void*)(oc[i].dest_o) << "==" << (void*)(src);

View File

@@ -115,7 +115,7 @@ public:
//~PIString() {piMonitor.strings--; piMonitor.containers++;}
PIString & operator =(const PIString & o) {clear(); *this += o; return *this;}
PIString & operator =(const PIString & o) {if (this == &o) return *this; clear(); *this += o; return *this;}
/*! \brief Return c-string representation of string
* \details Converts content of string to c-string and return