| 232 | } |
| 233 | |
| 234 | void SipTUMap::tuMapPeriodicService() { |
| 235 | ScopedLock lock(mTUMap.qGetLock()); |
| 236 | int cnt = 0; |
| 237 | //InterthreadMap<string,SipTransaction>::ScopedIterator sit(mTUMap); |
| 238 | for (TUMap_t::iterator sit = mTUMap.begin(); sit != mTUMap.end();) { |
| 239 | SipTransaction *me = sit->second; |
| 240 | sit++; |
| 241 | bool deleteme = me->TLPeriodicServiceV(); |
| 242 | LOG(DEBUG) <<LOGVAR(deleteme)<<LOGVAR(me); |
| 243 | if (deleteme) { |
| 244 | gSipInterface.tuMapRemove(me,true); |
| 245 | cnt++; |
| 246 | } |
| 247 | } |
| 248 | if (cnt) LOG(DEBUG) <<"finished, number deleted="<<cnt; |
| 249 | } |
| 250 | |
| 251 | // Attempt to dispatch an incoming SIP message to a TU; return true if a transaction wanted this message. |
| 252 | // This has to be locked so someone doesnt delete the TU between the time we get its pointer |
no test coverage detected