Changeset 4569

Show
Ignore:
Timestamp:
02/10/07 01:48:05 (1 year ago)
Author:
morris
Message:

Sync with wired

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wire/trunk/wire/main.c

    r4423 r4569  
    163163        } 
    164164         
    165         wi_release(pool); 
    166         pool = wi_pool_init(wi_pool_alloc()); 
     165        /* clean up pool after startup */ 
     166        wi_pool_drain(pool); 
    167167         
    168168        /* enter event loop */ 
     
    336336         
    337337        while(wr_running) { 
    338                 if(!pool) 
    339                         pool = wi_pool_init(wi_pool_alloc()); 
    340          
    341338                result = wr_runloop(wr_runloop_sockets, 30.0); 
    342339                 
     
    350347                        } 
    351348                         
    352                         wi_release(pool); 
    353                         pool = NULL; 
     349                        wi_pool_drain(pool); 
    354350                } 
    355351                 
    356                 if(++i % 100 == 0) { 
    357                         wi_release(pool); 
    358                         pool = NULL; 
    359                 } 
     352                if(++i % 100 == 0) 
     353                        wi_pool_drain(pool); 
    360354        } 
    361355