Changeset 4855

Show
Ignore:
Timestamp:
08/03/07 12:12:05 (1 year ago)
Author:
morris
Message:

Make _wi_pool_debug default for nightly testing purposes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libwired/trunk/libwired/misc/wi-pool.c

    r4774 r4855  
    108108        char    *env; 
    109109         
     110        _wi_pool_debug = true; 
     111 
    110112        env = getenv("wi_pool_debug"); 
    111113         
  • libwired/trunk/libwired/thread/wi-timer.c

    r4755 r4855  
    128128         
    129129        while(true) { 
    130                 if(!pool) 
    131                         pool = wi_pool_init(wi_pool_alloc()); 
    132                  
    133130                fire_timer      = NULL; 
    134131                locked          = true; 
     
    169166                        wi_condition_lock_unlock_with_condition(_wi_timer_lock, 0); 
    170167                 
    171                 if(++i % 100 == 0) { 
    172                         wi_release(pool); 
    173                         pool = NULL; 
    174                 } 
     168                if(++i % 100 == 0) 
     169                        wi_pool_drain(pool); 
    175170        } 
    176171