git-svn-id: svn://db.shs.com.ru/pip@415 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -447,7 +447,7 @@ bool PIPeer::dataRead(uchar * readed, int size) {
|
||||
ba >> type;
|
||||
// PIMutexLocker locker(eth_mutex);
|
||||
eth_mutex.lock();
|
||||
piCout << "dataRead lock";
|
||||
// piCout << "dataRead lock";
|
||||
if (type == 5) { // ping request
|
||||
PIString addr;
|
||||
PISystemTime time;
|
||||
@@ -717,7 +717,7 @@ bool PIPeer::sendToNeighbour(PIPeer::PeerInfo * peer, const PIByteArray & ba) {
|
||||
|
||||
void PIPeer::sendMBcast(const PIByteArray & ba) {
|
||||
send_mc_mutex.lock();
|
||||
piCout << "sendMBcast" << ba.size() << "bytes ...";
|
||||
// piCout << "sendMBcast" << ba.size() << "bytes ...";
|
||||
piForeach (PIEthernet * e, eths_mcast) {
|
||||
//errorClear();
|
||||
//piCout << "send to" << e->path() << e->sendAddress();// << e->send(ba);
|
||||
@@ -749,7 +749,7 @@ void PIPeer::sendMBcast(const PIByteArray & ba) {
|
||||
if (eth_tcp_cli.send(ba))
|
||||
diag_s.sended(ba.size_s());
|
||||
}
|
||||
piCout << "sendMBcast ok";
|
||||
// piCout << "sendMBcast ok";
|
||||
send_mc_mutex.unlock();
|
||||
}
|
||||
|
||||
@@ -852,7 +852,7 @@ bool PIPeer::closeDevice() {
|
||||
void PIPeer::syncPeers() {
|
||||
//piCout << "[PIPeer \"" + self_info.name + "\"] sync " << peers.size_s() << " peers";
|
||||
PIMutexLocker locker(eth_mutex);
|
||||
piCout << "syncPeers lock";
|
||||
// piCout << "syncPeers lock";
|
||||
PIString pn;
|
||||
bool change = false;
|
||||
PIStringList dpeers;
|
||||
@@ -908,7 +908,7 @@ void PIPeer::reinit() {
|
||||
// timer.clearDelimiters();
|
||||
PIMutexLocker mbl(mc_mutex);
|
||||
PIMutexLocker ethl(eth_mutex);
|
||||
piCout << "reinit lock";
|
||||
// piCout << "reinit lock";
|
||||
PIMutexLocker pl(peers_mutex);
|
||||
PIMutexLocker sl(send_mutex);
|
||||
initNetwork();
|
||||
|
||||
Reference in New Issue
Block a user