MCPcopy Create free account
hub / github.com/RangeNetworks/openbts / tuMapPeriodicService

Method tuMapPeriodicService

SIP/SIP2Interface.cpp:234–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234void 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

Callers 1

periodicServiceLoopFunction · 0.80

Calls 4

TLPeriodicServiceVMethod · 0.80
tuMapRemoveMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected