Changeset 4537 for pjproject/trunk/pjlib/src/pj/pool_caching.c
- Timestamp:
- Jun 19, 2013 6:47:43 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/pool_caching.c
r4298 r4537 192 192 193 193 /* Mark factory data */ 194 pool->factory_data = (void*) ( long) idx;194 pool->factory_data = (void*) (pj_ssize_t) idx; 195 195 196 196 /* Increment used count. */ … … 252 252 * Otherwise put the pool in our recycle list. 253 253 */ 254 i = (unsigned) (unsigned long) pool->factory_data;254 i = (unsigned) (unsigned long) (pj_ssize_t) pool->factory_data; 255 255 256 256 pj_assert(i<PJ_CACHING_POOL_ARRAY_SIZE); … … 280 280 if (detail) { 281 281 pj_pool_t *pool = (pj_pool_t*) cp->used_list.next; 282 pj_ uint32_t total_used = 0, total_capacity = 0;282 pj_size_t total_used = 0, total_capacity = 0; 283 283 PJ_LOG(3,("cachpool", " Dumping all active pools:")); 284 284 while (pool != (void*)&cp->used_list) { 285 unsignedpool_capacity = pj_pool_get_capacity(pool);285 pj_size_t pool_capacity = pj_pool_get_capacity(pool); 286 286 PJ_LOG(3,("cachpool", " %16s: %8d of %8d (%d%%) used", 287 287 pj_pool_getobjname(pool),
Note: See TracChangeset
for help on using the changeset viewer.