Changeset 3939
- Timestamp:
- 03/21/06 19:29:42 (2 years ago)
- Files:
-
- trackerd/trunk/trackerd/commands.c (modified) (3 diffs)
- trackerd/trunk/trackerd/tracker.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trackerd/trunk/trackerd/commands.c
r3935 r3939 80 80 81 81 void wt_control_thread(wi_runtime_instance_t *argument) { 82 wi_pool_t *pool , *loop_pool = NULL;82 wi_pool_t *pool; 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(! loop_pool)94 loop_pool = wi_pool_init(wi_pool_alloc());93 if(!pool) 94 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( loop_pool);132 loop_pool = NULL;131 wi_release(pool); 132 pool = NULL; 133 133 } 134 134 } trackerd/trunk/trackerd/tracker.c
r3935 r3939 206 206 207 207 static void wt_listen_thread(wi_runtime_instance_t *arg) { 208 wi_pool_t *pool , *loop_pool = NULL;208 wi_pool_t *pool; 209 209 wi_socket_t *socket; 210 210 wi_address_t *address; … … 216 216 217 217 while(wt_running) { 218 if(! loop_pool)219 loop_pool = wi_pool_init(wi_pool_alloc());218 if(!pool) 219 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( loop_pool);253 loop_pool = NULL;252 wi_release(pool); 253 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 , *loop_pool = NULL;263 wi_pool_t *pool; 264 264 wi_array_t *arguments; 265 265 wi_address_t *address; … … 274 274 275 275 while(wt_running) { 276 if(! loop_pool)277 loop_pool = wi_pool_init(wi_pool_alloc());276 if(!pool) 277 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( loop_pool);354 loop_pool = NULL;353 wi_release(pool); 354 pool = NULL; 355 355 } 356 356 }
