Changeset 183:960764fbc68f in freeDiameter
- Timestamp:
- Feb 4, 2010, 4:22:55 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
include/freeDiameter/libfreeDiameter.h
r181 r183 190 190 /* Helper for debugging by adding traces -- for debuging a specific location of the code */ 191 191 #define TRACE_HERE() \ 192 TRACE_DEBUG(NONE, " -- debug checkpoint -- "); 192 TRACE_DEBUG(NONE, " -- debug checkpoint %d -- ", fd_breakhere()); 193 int fd_breakhere(void); 193 194 194 195 /* Helper for tracing the CHECK_* macros bellow -- very very verbose code execution! */ … … 478 479 static __inline__ int fd_thr_term(pthread_t * th) 479 480 { 480 int ret = 0;481 481 void * th_ret = NULL; 482 482 … … 491 491 492 492 /* Then join the thread */ 493 CHECK_POSIX _DO( ret = pthread_join(*th, &th_ret), /* continue */);493 CHECK_POSIX( pthread_join(*th, &th_ret) ); 494 494 495 495 if (th_ret == PTHREAD_CANCELED) { … … 502 502 *th = (pthread_t)NULL; 503 503 504 return ret;504 return 0; 505 505 } 506 506 -
libfreeDiameter/log.c
r174 r183 46 46 char * fd_debug_one_file = NULL; 47 47 48 /* Useless function, only to ease setting up a breakpoint in gdb (break fd_breakhere) -- use TRACE_HERE */ 49 int fd_breaks = 0; 50 int fd_breakhere(void) { return ++fd_breaks; } 48 51 49 52 /* Log a debug message */
Note: See TracChangeset
for help on using the changeset viewer.