Changeset 230
- Timestamp:
- 09/06/04 12:53:15 (4 years ago)
- Files:
-
- trackerd/trunk/trackerd/utility.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trackerd/trunk/trackerd/utility.c
r208 r230 1 /* $Id: utility.c,v 1. 3 2004/07/28 21:55:45 morris Exp $ */1 /* $Id: utility.c,v 1.4 2004/09/06 10:53:15 morris Exp $ */ 2 2 3 3 /* … … 149 149 #pragma mark - 150 150 151 pthread_mutex_t wt_log_mutex = PTHREAD_MUTEX_INITIALIZER; 151 152 unsigned int wt_log_lines; 152 153 … … 158 159 va_list ap; 159 160 161 /* lock */ 162 pthread_mutex_lock(&wt_log_mutex); 163 164 /* create argument string */ 160 165 va_start(ap, fmt); 161 166 … … 206 211 exit(1); 207 212 213 /* clean up */ 208 214 free(buffer); 215 216 /* unlock */ 217 pthread_mutex_unlock(&wt_log_mutex); 209 218 } 210 219
