Changeset 938:4158151cc694 in freeDiameter
- Timestamp:
- Mar 12, 2013, 11:27:30 PM (11 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- libfdcore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdcore/fdcore-internal.h
r928 r938 126 126 struct fd_list srs; /* requests ordered by hop-by-hop id */ 127 127 struct fd_list exp; /* requests that have a timeout set, ordered by timeout */ 128 int cnt; /* number of requests in the srs list */ 128 129 pthread_mutex_t mtx; /* mutex to protect these lists */ 129 130 pthread_cond_t cnd; /* cond var used by the thread that handles timeouts */ -
libfdcore/p_sr.c
r837 r938 226 226 *req = NULL; 227 227 fd_list_insert_before(next, &sr->chain); 228 srlist->cnt++; 228 229 srl_dump("Saved new request, ", &srlist->srs); 229 230 … … 281 282 /* Unlink */ 282 283 fd_list_unlink(&sr->chain); 284 srlist->cnt--; 283 285 fd_list_unlink(&sr->expire); 284 286 *req = sr->req; … … 300 302 struct sentreq * sr = (struct sentreq *)(srlist->srs.next); 301 303 fd_list_unlink(&sr->chain); 304 srlist->cnt--; 302 305 fd_list_unlink(&sr->expire); 303 306 if (fd_msg_is_routable(sr->req)) {
Note: See TracChangeset
for help on using the changeset viewer.