| 215 | } |
| 216 | |
| 217 | void SipTUMap::tuMapAdd(SipTransaction*tup) { |
| 218 | LOG(DEBUG) <<LOGVAR(tup); |
| 219 | string key = tuMakeKey(tup); |
| 220 | if (SipTransaction *existingTU = mTUMap.readNoBlock(key)) { |
| 221 | LOG(ERR) << "Warning: adding second SipTransaction with branch:"<<tup->stBranch() |
| 222 | <<LOGVAR(key) <<LOGVAR(existingTU) <<LOGVAR(tup); |
| 223 | } |
| 224 | // Deletes the old. |
| 225 | // Take care not to create deadlock here? To delete the old SipTransaction we have to lock it. |
| 226 | mTUMap.write(key,tup); |
| 227 | } |
| 228 | |
| 229 | void SipTUMap::tuMapRemove(SipTransaction*tup, bool /*whine*/) { |
| 230 | LOG(DEBUG) <<LOGVAR(tup); |