git-svn-id: svn://db.shs.com.ru/pip@275 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -817,6 +817,11 @@ bool PIPeer::openDevice() {
|
||||
}
|
||||
|
||||
|
||||
bool PIPeer::closeDevice() {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
void PIPeer::syncPeers() {
|
||||
//piCout << "[PIPeer \"" + self_info.name + "\"] sync " << peers.size_s() << " peers";
|
||||
PIMutexLocker locker(eth_mutex);
|
||||
|
||||
@@ -182,7 +182,7 @@ private:
|
||||
bool isRemoved(const PeerInfo & pi) const {return (removed.value(pi.name) == PIPair<int, PISystemTime>(pi.cnt, pi.time));}
|
||||
|
||||
bool openDevice();
|
||||
bool closeDevice() {return false;}
|
||||
bool closeDevice();
|
||||
PIString fullPathPrefix() const {return "peer";}
|
||||
void configureFromFullPath(const PIString &full_path);
|
||||
|
||||
@@ -195,8 +195,7 @@ private:
|
||||
// Data packet: 4, from, to, ticks, data_size, data
|
||||
|
||||
protected:
|
||||
PIMutex mc_mutex, eth_mutex, peers_mutex, send_mutex;
|
||||
PIMutex send_mc_mutex;
|
||||
PIMutex mc_mutex, eth_mutex, peers_mutex, send_mutex, send_mc_mutex;
|
||||
|
||||
private:
|
||||
PIVector<PIEthernet * > eths_traffic, eths_mcast, eths_bcast;
|
||||
|
||||
Reference in New Issue
Block a user