Changeset 230

Show
Ignore:
Timestamp:
09/06/04 12:53:15 (4 years ago)
Author:
morris
Message:

sync with wired

Files:

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 $ */ 
    22 
    33/* 
     
    149149#pragma mark - 
    150150 
     151pthread_mutex_t                 wt_log_mutex = PTHREAD_MUTEX_INITIALIZER; 
    151152unsigned int                                    wt_log_lines; 
    152153 
     
    158159        va_list         ap; 
    159160         
     161        /* lock */ 
     162        pthread_mutex_lock(&wt_log_mutex); 
     163 
     164        /* create argument string */ 
    160165        va_start(ap, fmt); 
    161166         
     
    206211                exit(1); 
    207212         
     213        /* clean up */ 
    208214        free(buffer); 
     215 
     216        /* unlock */ 
     217        pthread_mutex_unlock(&wt_log_mutex); 
    209218} 
    210219