19 ConnectManager::ConnectManager() =
default;
21 ConnectManager::~ConnectManager()
27 for (std::list<ConnectThread *>::iterator it = con.begin();
28 it != con.end(); it++) {
29 if ((*it) !=
nullptr) {
37 const std::string& dest,
44 const std::string& dest,
47 yCTrace(CONNECTMANAGER,
" ??? %s %s", src.c_str(), dest.c_str());
49 yCTrace(CONNECTMANAGER,
"***** %zd threads", con.size());
50 std::list<ConnectThread *>::iterator it = con.begin();
52 while (it != con.end()) {
53 if ((*it) !=
nullptr) {
56 yCTrace(CONNECTMANAGER,
"***** reusing a thread");
60 yCTrace(CONNECTMANAGER,
"***** deleting a thread");
67 if ((*it)->src == src && (*it)->dest == dest) {
70 "??? prethread %d %d",
74 (*it)->positive = positive;
93 t->positive = positive;