Changeset 22:0b3b46da2c12 in freeDiameter for freeDiameter/p_expiry.c
- Timestamp:
- Oct 19, 2009, 6:43:09 PM (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
freeDiameter/p_expiry.c
r16 r22 47 47 static void * gc_th_fct(void * arg) 48 48 { 49 fd_log_threadname ( "Peers/garb age" );50 TRACE_ENTRY( " ");49 fd_log_threadname ( "Peers/garb. col." ); 50 TRACE_ENTRY( "%p", arg ); 51 51 52 52 do { 53 53 struct fd_list * li, purge = FD_LIST_INITIALIZER(purge); 54 54 55 pthread_testcancel(); 56 sleep(GC_TIME); 55 sleep(GC_TIME); /* sleep is a cancellation point */ 57 56 58 57 /* Now check in the peers list if any peer can be deleted */ … … 96 95 { 97 96 fd_log_threadname ( "Peers/expire" ); 98 TRACE_ENTRY( " ");97 TRACE_ENTRY( "%p", arg ); 99 98 100 99 CHECK_POSIX_DO( pthread_mutex_lock(&exp_mtx), goto error ); … … 124 123 125 124 CHECK_POSIX_DO2( pthread_cond_timedwait( &exp_cnd, &exp_mtx, &first->p_exp_timer ), 126 ETIMEDOUT, /* ETIMEDOUT is a normal error, continue */,125 ETIMEDOUT, /* ETIMEDOUT is a normal return value, continue */, 127 126 /* on other error, */ goto error ); 128 127
Note: See TracChangeset
for help on using the changeset viewer.