/dports/multimedia/musikcube/musikcube-0.96.7/src/3rdparty/win32_src/microhttpd/ |
H A D | memorypool.c | 172 return (pool->end - pool->pos); in MHD_pool_get_free() 198 if ( (pool->pos + asize > pool->end) || in MHD_pool_allocate() 199 (pool->pos + asize < pool->pos)) in MHD_pool_allocate() 203 ret = &pool->memory[pool->end - asize]; in MHD_pool_allocate() 208 ret = &pool->memory[pool->pos]; in MHD_pool_allocate() 253 if (pool->pos + asize - old_size <= pool->end) in MHD_pool_reallocate() 258 memset (&pool->memory[pool->pos], in MHD_pool_reallocate() 268 if ((pool->pos + asize >= pool->pos) && in MHD_pool_reallocate() 269 (pool->pos + asize <= pool->end)) in MHD_pool_reallocate() 272 ret = &pool->memory[pool->pos]; in MHD_pool_reallocate() [all …]
|
/dports/devel/directfb/DirectFB-1.4.17/src/core/ |
H A D | surface_pool.c | 167 pool_array[pool->pool_id] = pool; in dfb_surface_pool_initialize2() 237 pool_array[pool->pool_id] = pool; in dfb_surface_pool_join2() 246 ret = funcs->JoinPool( core, pool, pool->data, get_local(pool), ctx ); in dfb_surface_pool_join2() 286 funcs->DestroyPool( pool, pool->data, get_local(pool) ); in dfb_surface_pool_destroy() 301 SHFREE( pool->shmpool, pool ); in dfb_surface_pool_destroy() 325 funcs->LeavePool( pool, pool->data, get_local(pool) ); in dfb_surface_pool_leave() 373 … pool->desc.caps, pool->desc.types, pool->desc.priority, pool->desc.name ); in dfb_surface_pools_prealloc() 498 … pool->desc.caps, pool->desc.types, pool->desc.priority, pool->desc.name ); in dfb_surface_pools_negotiate() 1163 pool->data = SHCALLOC( pool->shmpool, 1, pool->pool_data_size ); in init_pool() 1178 ret = funcs->InitPool( core, pool, pool->data, get_local(pool), ctx, &pool->desc ); in init_pool() [all …]
|
/dports/devel/shmap/shmap-0.3.2/shmap/ |
H A D | pool.c | 77 if ( pool->current->listsize == pool->current->cursor ) in _sh_pool_add() 82 if ( pool->current->listsize == pool->current->cursor ) in _sh_pool_add() 83 pool->current->ptrlist[pool->current->cursor] = ptr; in _sh_pool_add() 143 _shpool * pool; in sh_pool_init() local 153 pool->top = pool->current; in sh_pool_init() 155 return pool; in sh_pool_init() 205 CHECK_NULL(pool) in sh_pool_malloc() 219 CHECK_NULL(pool) in sh_pool_realloc() 232 CHECK_NULL_(pool) in sh_pool_free() 243 CHECK_NULL(pool) in sh_pool_strdup() [all …]
|
/dports/net/haproxy/haproxy-2.4.10/include/haproxy/ |
H A D | pool.h | 83 return pool->allocated >= swrate_avg(pool->needed_avg + pool->needed_avg / 4, POOL_AVG_SAMPLES) && in pool_is_crowded() 84 (int)(pool->allocated - pool->used) >= pool->minavail; in pool_is_crowded() 137 _HA_ATOMIC_STORE(&pool->free_list, *POOL_LINK(pool, ret)); in pool_get_from_shared_cache() 142 *POOL_LINK(pool, ret) = (void *)pool; in pool_get_from_shared_cache() 174 swrate_add(&pool->needed_avg, POOL_AVG_SAMPLES, pool->used); in pool_put_to_shared_cache() 193 pool->free_list = *POOL_LINK(pool, p); in pool_get_from_shared_cache() 201 *POOL_LINK(pool, p) = (void *)pool; in pool_get_from_shared_cache() 216 *POOL_LINK(pool, ptr) = (void *)pool->free_list; in pool_put_to_shared_cache() 226 swrate_add(&pool->needed_avg, POOL_AVG_SAMPLES, pool->used); in pool_put_to_shared_cache() 256 *POOL_LINK(pool, item) = (void *)pool; in pool_get_from_cache() [all …]
|
/dports/graphics/blender/blender-2.91.0/source/blender/blenlib/intern/ |
H A D | task_pool.cc | 48 TaskPool *pool; member in Task 54 Task(TaskPool *pool, in Task() argument 80 : pool(other.pool), in Task() 86 other.pool = NULL; in Task() 95 : pool(other.pool), in Task() 270 UNUSED_VARS(pool); in tbb_task_pool_cancel() 281 UNUSED_VARS(pool); in tbb_task_pool_canceled() 328 BLI_threadpool_insert(&pool->background_threads, pool); in background_task_pool_run() 353 BLI_threadpool_remove(&pool->background_threads, pool); in background_task_pool_cancel() 404 return pool; in task_pool_create_ex() [all …]
|
/dports/dns/knot-resolver/knot-resolver-5.4.3/contrib/ucw/ |
H A D | mempool.h | 208 void *ptr = (byte *)pool->state.last[0] - pool->state.free[0]; in mp_alloc_fast_noalign() 286 return (byte *)pool->state.last[0] - pool->state.free[0]; in mp_start_fast_noalign() 297 return (byte *)pool->state.last[pool->idx] - pool->state.free[pool->idx]; in mp_ptr() 306 return pool->state.free[pool->idx]; in mp_avail() 317 return (size <= mp_avail(pool)) ? mp_ptr(pool) : mp_grow_internal(pool, size); in mp_grow() 325 return mp_grow_internal(pool, mp_avail(pool) + 1); in mp_expand() 379 pool->state.free[pool->idx] = (byte *)pool->state.last[pool->idx] - (byte *)end; in mp_end() 413 pool->idx = mp_idx(pool, ptr); in mp_open_fast() 414 size_t size = ((byte *)pool->state.last[pool->idx] - (byte *)ptr) - pool->state.free[pool->idx]; in mp_open_fast() 415 pool->state.free[pool->idx] += size; in mp_open_fast() [all …]
|
/dports/net/pjsip/pjproject-2.11.1/pjlib/src/pj/ |
H A D | pool.c | 57 size, pool->capacity, pj_pool_get_used_size(pool))); in pj_pool_create_block() 61 (*pool->factory->policy.block_alloc)(pool->factory, size); in pj_pool_create_block() 63 (*pool->callback)(pool, size); in pj_pool_create_block() 112 (*pool->callback)(pool, size); in pj_pool_allocate_find() 207 pj_bzero(pool, sizeof(*pool)); in pj_pool_create_int() 264 pool->capacity = block->end - (unsigned char*)pool; in reset_pool() 273 pool->capacity, pj_pool_get_used_size(pool), in pj_pool_reset() 274 pj_pool_get_used_size(pool)*100/pool->capacity)); in pj_pool_reset() 287 pool->capacity, pj_pool_get_used_size(pool), in pj_pool_destroy_int() 288 pj_pool_get_used_size(pool)*100/pool->capacity, in pj_pool_destroy_int() [all …]
|
/dports/databases/py-redis2/redis-py-2.10.6/tests/ |
H A D | test_connection_pool.py | 29 return pool 39 pool = self.get_pool() 46 pool.get_connection('_') 47 pool.get_connection('_') 52 pool = self.get_pool() 54 pool.release(c1) 80 return pool 90 pool = self.get_pool() 116 pool.release(c1) 124 pool = self.get_pool() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/skia/tests/ |
H A D | GrBlockAllocatorTest.cpp | 48 return pool->totalSize() - pool->testingOnly_scratchBlockSize(); in total_size() 56 pool->template allocate<4>(pool->preallocSize() / 2); in add_block() 365 pool->releaseBlock(get_block(pool, 1)); in DEF_TEST() 370 pool->releaseBlock(get_block(pool, 1)); in DEF_TEST() 375 pool->releaseBlock(get_block(pool, 1)); in DEF_TEST() 384 pool->releaseBlock(get_block(pool, 1)); in DEF_TEST() 387 pool->releaseBlock(get_block(pool, 0)); in DEF_TEST() 397 pool->releaseBlock(get_block(pool, 0)); in DEF_TEST() 446 pool->releaseBlock(pool->currentBlock()); in DEF_TEST() 473 pool->reserve(pool->currentBlock()->avail()); in DEF_TEST() [all …]
|
/dports/net/haproxy23/haproxy-2.3.16/include/haproxy/ |
H A D | pool.h | 69 return pool->allocated >= swrate_avg(pool->needed_avg + pool->needed_avg / 4, POOL_AVG_SAMPLES) && in pool_is_crowded() 70 (int)(pool->allocated - pool->used) >= pool->minavail; in pool_is_crowded() 122 *POOL_LINK(pool, item) = (void *)pool; in __pool_get_from_cache() 204 _HA_ATOMIC_STORE(&pool->free_list, *POOL_LINK(pool, ret)); in __pool_get_first() 208 *POOL_LINK(pool, ret) = (void *)pool; in __pool_get_first() 258 pool->free_list = *POOL_LINK(pool, p); in __pool_get_first() 262 *POOL_LINK(pool, p) = (void *)pool; in __pool_get_first() 275 pool->used--; in __pool_free() 280 *POOL_LINK(pool, ptr) = (void *)pool->free_list; in __pool_free() 291 pool->used--; in __pool_free() [all …]
|
/dports/java/java-subversion/subversion-1.14.1/subversion/tests/libsvn_subr/ |
H A D | translate-test.c | 746 noop(apr_pool_t *pool) in noop() argument 803 lf_to_lf(apr_pool_t *pool) in lf_to_lf() argument 819 cr_to_lf(apr_pool_t *pool) in cr_to_lf() argument 843 lf_to_cr(apr_pool_t *pool) in lf_to_cr() argument 851 cr_to_cr(apr_pool_t *pool) in cr_to_cr() argument 981 1, pool)); in expand_author_date_rev_url() 989 1, pool)); in expand_author_date_rev_url() 1053 pool); in mixed_to_crlf_expand_author_date_rev_url() 1157 1, pool)); in unexpand_author_date_rev_url() 1165 1, pool)); in unexpand_author_date_rev_url() [all …]
|
/dports/devel/py-subversion/subversion-1.14.1/subversion/tests/libsvn_subr/ |
H A D | translate-test.c | 746 noop(apr_pool_t *pool) in noop() argument 803 lf_to_lf(apr_pool_t *pool) in lf_to_lf() argument 819 cr_to_lf(apr_pool_t *pool) in cr_to_lf() argument 843 lf_to_cr(apr_pool_t *pool) in lf_to_cr() argument 851 cr_to_cr(apr_pool_t *pool) in cr_to_cr() argument 981 1, pool)); in expand_author_date_rev_url() 989 1, pool)); in expand_author_date_rev_url() 1053 pool); in mixed_to_crlf_expand_author_date_rev_url() 1157 1, pool)); in unexpand_author_date_rev_url() 1165 1, pool)); in unexpand_author_date_rev_url() [all …]
|
/dports/security/subversion-gnome-keyring/subversion-1.14.1/subversion/tests/libsvn_subr/ |
H A D | translate-test.c | 746 noop(apr_pool_t *pool) in noop() argument 803 lf_to_lf(apr_pool_t *pool) in lf_to_lf() argument 819 cr_to_lf(apr_pool_t *pool) in cr_to_lf() argument 843 lf_to_cr(apr_pool_t *pool) in lf_to_cr() argument 851 cr_to_cr(apr_pool_t *pool) in cr_to_cr() argument 981 1, pool)); in expand_author_date_rev_url() 989 1, pool)); in expand_author_date_rev_url() 1053 pool); in mixed_to_crlf_expand_author_date_rev_url() 1157 1, pool)); in unexpand_author_date_rev_url() 1165 1, pool)); in unexpand_author_date_rev_url() [all …]
|
/dports/devel/p5-subversion/subversion-1.14.1/subversion/tests/libsvn_subr/ |
H A D | translate-test.c | 746 noop(apr_pool_t *pool) in noop() argument 803 lf_to_lf(apr_pool_t *pool) in lf_to_lf() argument 819 cr_to_lf(apr_pool_t *pool) in cr_to_lf() argument 843 lf_to_cr(apr_pool_t *pool) in lf_to_cr() argument 851 cr_to_cr(apr_pool_t *pool) in cr_to_cr() argument 981 1, pool)); in expand_author_date_rev_url() 989 1, pool)); in expand_author_date_rev_url() 1053 pool); in mixed_to_crlf_expand_author_date_rev_url() 1157 1, pool)); in unexpand_author_date_rev_url() 1165 1, pool)); in unexpand_author_date_rev_url() [all …]
|
/dports/net/haproxy22/haproxy-2.2.19/include/haproxy/ |
H A D | pool.h | 69 return pool->allocated >= swrate_avg(pool->needed_avg + pool->needed_avg / 4, POOL_AVG_SAMPLES) && in pool_is_crowded() 70 (int)(pool->allocated - pool->used) >= pool->minavail; in pool_is_crowded() 122 *POOL_LINK(pool, item) = (void *)pool; in __pool_get_from_cache() 186 _HA_ATOMIC_STORE(&pool->free_list, *POOL_LINK(pool, ret)); in __pool_get_first() 190 *POOL_LINK(pool, ret) = (void *)pool; in __pool_get_first() 240 pool->free_list = *POOL_LINK(pool, p); in __pool_get_first() 244 *POOL_LINK(pool, p) = (void *)pool; in __pool_get_first() 257 pool->used--; in __pool_free() 262 *POOL_LINK(pool, ptr) = (void *)pool->free_list; in __pool_free() 273 pool->used--; in __pool_free() [all …]
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/md/ |
H A D | dm-thin.c | 626 struct pool *pool = tc->pool; in requeue_deferred_cells() local 679 struct pool *pool = tc->pool; in get_bio_block() local 696 struct pool *pool = tc->pool; in get_bio_block_range() local 720 struct pool *pool = tc->pool; in remap() local 757 struct pool *pool = tc->pool; in issue() local 885 struct pool *pool = tc->pool; in cell_defer_no_holder() local 963 struct pool *pool = tc->pool; in complete_overwrite_bio() local 996 struct pool *pool = tc->pool; in process_prepared_mapping() local 1087 struct pool *pool = tc->pool; in passdown_double_checking_shared_status() local 1151 struct pool *pool = tc->pool; in process_prepared_discard_passdown_pt1() local [all …]
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/md/ |
H A D | dm-thin.c | 626 struct pool *pool = tc->pool; in requeue_deferred_cells() local 679 struct pool *pool = tc->pool; in get_bio_block() local 696 struct pool *pool = tc->pool; in get_bio_block_range() local 720 struct pool *pool = tc->pool; in remap() local 757 struct pool *pool = tc->pool; in issue() local 885 struct pool *pool = tc->pool; in cell_defer_no_holder() local 963 struct pool *pool = tc->pool; in complete_overwrite_bio() local 996 struct pool *pool = tc->pool; in process_prepared_mapping() local 1087 struct pool *pool = tc->pool; in passdown_double_checking_shared_status() local 1151 struct pool *pool = tc->pool; in process_prepared_discard_passdown_pt1() local [all …]
|
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/md/ |
H A D | dm-thin.c | 626 struct pool *pool = tc->pool; in requeue_deferred_cells() local 679 struct pool *pool = tc->pool; in get_bio_block() local 696 struct pool *pool = tc->pool; in get_bio_block_range() local 720 struct pool *pool = tc->pool; in remap() local 757 struct pool *pool = tc->pool; in issue() local 885 struct pool *pool = tc->pool; in cell_defer_no_holder() local 963 struct pool *pool = tc->pool; in complete_overwrite_bio() local 996 struct pool *pool = tc->pool; in process_prepared_mapping() local 1087 struct pool *pool = tc->pool; in passdown_double_checking_shared_status() local 1151 struct pool *pool = tc->pool; in process_prepared_discard_passdown_pt1() local [all …]
|
/dports/net/libmaxminddb/libmaxminddb-1.6.0/src/ |
H A D | data-pool.c | 14 if (!pool) { in data_pool_new() 29 pool->blocks[0]->pool = pool; in data_pool_new() 33 pool->block = pool->blocks[0]; in data_pool_new() 35 return pool; in data_pool_new() 52 if (!pool) { in data_pool_destroy() 60 free(pool); in data_pool_destroy() 70 if (pool->used < pool->size) { in data_pool_alloc() 98 pool->blocks[new_index]->pool = pool; in data_pool_alloc() 101 pool->block = pool->blocks[pool->index]; in data_pool_alloc() 104 pool->sizes[pool->index] = pool->size; in data_pool_alloc() [all …]
|
/dports/devel/poco/poco-1.10.1-all/Foundation/testsuite/src/ |
H A D | ThreadPoolTest.cpp | 44 pool.addCapacity(1); in testThreadPool() 51 pool.start(ra); in testThreadPool() 57 pool.start(ra); in testThreadPool() 63 pool.start(ra); in testThreadPool() 69 pool.start(ra); in testThreadPool() 77 pool.start(ra); in testThreadPool() 89 pool.joinAll(); in testThreadPool() 100 pool.collect(); in testThreadPool() 108 pool.start(ra); in testThreadPool() 114 pool.start(ra); in testThreadPool() [all …]
|
/dports/sysutils/fluent-bit/fluent-bit-1.8.11/plugins/filter_geoip2/libmaxminddb/src/ |
H A D | data-pool.c | 15 if (!pool) { 30 pool->blocks[0]->pool = pool; 34 pool->block = pool->blocks[0]; 36 return pool; 55 if (!pool) { 63 free(pool); 74 if (pool->used < pool->size) { 102 pool->blocks[new_index]->pool = pool; 105 pool->block = pool->blocks[pool->index]; 108 pool->sizes[pool->index] = pool->size; [all …]
|
/dports/devel/ivykis/ivykis-0.42.4/src/ |
H A D | iv_work.c | 61 struct work_pool_priv *pool = thr->pool; in __iv_work_thread_die() local 75 pool->thread_stop(pool->cookie); in __iv_work_thread_die() 77 if (pool->shutting_down && !pool->started_threads) in __iv_work_thread_die() 84 struct work_pool_priv *pool = thr->pool; in iv_work_thread_got_event() local 115 if (pool->seq_head == pool->seq_tail) { in iv_work_thread_got_event() 144 struct work_pool_priv *pool = thr->pool; in iv_work_thread_idle_timeout() local 163 struct work_pool_priv *pool = thr->pool; in iv_work_thread() local 181 pool->thread_start(pool->cookie); in iv_work_thread() 228 pool = malloc(sizeof(*pool)); in iv_work_pool_create() 239 pool->ev.cookie = pool; in iv_work_pool_create() [all …]
|
/dports/multimedia/vlc/vlc-3.0.16/src/misc/ |
H A D | picture_pool.c | 61 aligned_free(pool); in picture_pool_Destroy() 123 picture_pool_t *pool; in picture_pool_NewExtended() local 144 return pool; in picture_pool_NewExtended() 170 if (!pool) in picture_pool_NewFromFormat() 173 return pool; in picture_pool_NewFromFormat() 193 if (!pool) in picture_pool_Reserve() 196 return pool; in picture_pool_Reserve() 217 if (pool->canceled) in picture_pool_Get() 223 for (unsigned i = ffsll(pool->available); i; i = fnsll(pool->available, i)) in picture_pool_Get() 262 vlc_cond_wait(&pool->wait, &pool->lock); in picture_pool_Wait() [all …]
|
/dports/sysutils/syslog-ng/syslog-ng-3.35.1/lib/ivykis/src/ |
H A D | iv_work.c | 61 struct work_pool_priv *pool = thr->pool; in __iv_work_thread_die() local 75 pool->thread_stop(pool->cookie); in __iv_work_thread_die() 77 if (pool->shutting_down && !pool->started_threads) in __iv_work_thread_die() 84 struct work_pool_priv *pool = thr->pool; in iv_work_thread_got_event() local 115 if (pool->seq_head == pool->seq_tail) { in iv_work_thread_got_event() 144 struct work_pool_priv *pool = thr->pool; in iv_work_thread_idle_timeout() local 163 struct work_pool_priv *pool = thr->pool; in iv_work_thread() local 181 pool->thread_start(pool->cookie); in iv_work_thread() 228 pool = malloc(sizeof(*pool)); in iv_work_pool_create() 239 pool->ev.cookie = pool; in iv_work_pool_create() [all …]
|
/dports/emulators/qemu42/qemu-4.2.1/roms/edk2/CryptoPkg/Library/OpensslLib/openssl/crypto/rand/ |
H A D | rand_lib.c | 485 pool->min_len = pool->max_len = pool->len; in rand_pool_attach() 555 OPENSSL_cleanse(pool->buffer, pool->len); in rand_pool_reattach() 577 if (pool->entropy < pool->entropy_requested) in rand_pool_entropy_available() 580 if (pool->len < pool->min_len) in rand_pool_entropy_available() 593 if (pool->entropy < pool->entropy_requested) in rand_pool_entropy_needed() 623 if (pool->len < pool->min_len && in rand_pool_bytes_needed() 634 return pool->max_len - pool->len; in rand_pool_bytes_remaining() 649 if (len > pool->max_len - pool->len) { in rand_pool_add() 685 if (len > pool->max_len - pool->len) { in rand_pool_add_begin() 695 return pool->buffer + pool->len; in rand_pool_add_begin() [all …]
|