Changeset 3935
- Timestamp:
- 03/21/06 19:17:40 (2 years ago)
- Files:
-
- trackerd/trunk/trackerd/commands.c (modified) (3 diffs)
- trackerd/trunk/trackerd/main.c (modified) (1 diff)
- trackerd/trunk/trackerd/tracker.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trackerd/trunk/trackerd/commands.c
r3832 r3935 80 80 81 81 void wt_control_thread(wi_runtime_instance_t *argument) { 82 wi_pool_t *pool ;82 wi_pool_t *pool, *loop_pool = NULL; 83 83 wt_client_t *client = (wt_client_t *) argument; 84 84 wi_string_t *string; … … 91 91 92 92 while(client->state <= WT_CLIENT_STATE_SAID_HELLO) { 93 if(! pool)94 pool = wi_pool_init(wi_pool_alloc());93 if(!loop_pool) 94 loop_pool = wi_pool_init(wi_pool_alloc()); 95 95 96 96 if(client->buffer_offset == 0) { … … 129 129 130 130 if(++i % 10 == 0) { 131 wi_release( pool);132 pool = NULL;131 wi_release(loop_pool); 132 loop_pool = NULL; 133 133 } 134 134 } trackerd/trunk/trackerd/main.c
r3836 r3935 431 431 static void wt_signal_crash(int sigraised) { 432 432 wt_cleanup(); 433 434 sleep(360); 433 435 434 436 if(signal(sigraised, SIG_DFL) != SIG_ERR) trackerd/trunk/trackerd/tracker.c
r3906 r3935 206 206 207 207 static void wt_listen_thread(wi_runtime_instance_t *arg) { 208 wi_pool_t *pool ;208 wi_pool_t *pool, *loop_pool = NULL; 209 209 wi_socket_t *socket; 210 210 wi_address_t *address; … … 216 216 217 217 while(wt_running) { 218 if(! pool)219 pool = wi_pool_init(wi_pool_alloc());218 if(!loop_pool) 219 loop_pool = wi_pool_init(wi_pool_alloc()); 220 220 221 221 ip = NULL; … … 250 250 next: 251 251 if(++i % 100 == 0) { 252 wi_release( pool);253 pool = NULL;252 wi_release(loop_pool); 253 loop_pool = NULL; 254 254 } 255 255 } … … 261 261 262 262 static void wt_receive_thread(wi_runtime_instance_t *arg) { 263 wi_pool_t *pool ;263 wi_pool_t *pool, *loop_pool = NULL; 264 264 wi_array_t *arguments; 265 265 wi_address_t *address; … … 274 274 275 275 while(wt_running) { 276 if(! pool)277 pool = wi_pool_init(wi_pool_alloc());276 if(!loop_pool) 277 loop_pool = wi_pool_init(wi_pool_alloc()); 278 278 279 279 command = NULL; … … 351 351 next: 352 352 if(++i % 100 == 0) { 353 wi_release( pool);354 pool = NULL;353 wi_release(loop_pool); 354 loop_pool = NULL; 355 355 } 356 356 }
