/dports/graphics/mesa-gallium-xa/mesa-21.3.6/src/gallium/frontends/nine/ |
H A D | threadpool.c | 52 while (!pool->workqueue && !pool->shutdown) in threadpool_worker() 53 pthread_cond_wait(&pool->new_work, &pool->m); in threadpool_worker() 90 struct threadpool *pool = calloc(1, sizeof(*pool)); in _mesa_threadpool_create() local 92 if (!pool) in _mesa_threadpool_create() 103 pthread_create(&pool->pthread, NULL, threadpool_worker, pool); in _mesa_threadpool_create() 105 return pool; in _mesa_threadpool_create() 111 if (!pool) in _mesa_threadpool_destroy() 119 if (pool->wthread) { in _mesa_threadpool_destroy() 127 free(pool); in _mesa_threadpool_destroy() 147 if (!pool) { in _mesa_threadpool_queue_task() [all …]
|
/dports/graphics/mesa-dri-gallium/mesa-21.3.6/src/gallium/frontends/nine/ |
H A D | threadpool.c | 52 while (!pool->workqueue && !pool->shutdown) in threadpool_worker() 53 pthread_cond_wait(&pool->new_work, &pool->m); in threadpool_worker() 90 struct threadpool *pool = calloc(1, sizeof(*pool)); in _mesa_threadpool_create() local 92 if (!pool) in _mesa_threadpool_create() 103 pthread_create(&pool->pthread, NULL, threadpool_worker, pool); in _mesa_threadpool_create() 105 return pool; in _mesa_threadpool_create() 111 if (!pool) in _mesa_threadpool_destroy() 119 if (pool->wthread) { in _mesa_threadpool_destroy() 127 free(pool); in _mesa_threadpool_destroy() 147 if (!pool) { in _mesa_threadpool_queue_task() [all …]
|
/dports/graphics/mesa-gallium-va/mesa-21.3.6/src/gallium/frontends/nine/ |
H A D | threadpool.c | 52 while (!pool->workqueue && !pool->shutdown) in threadpool_worker() 53 pthread_cond_wait(&pool->new_work, &pool->m); in threadpool_worker() 90 struct threadpool *pool = calloc(1, sizeof(*pool)); in _mesa_threadpool_create() local 92 if (!pool) in _mesa_threadpool_create() 103 pthread_create(&pool->pthread, NULL, threadpool_worker, pool); in _mesa_threadpool_create() 105 return pool; in _mesa_threadpool_create() 111 if (!pool) in _mesa_threadpool_destroy() 119 if (pool->wthread) { in _mesa_threadpool_destroy() 127 free(pool); in _mesa_threadpool_destroy() 147 if (!pool) { in _mesa_threadpool_queue_task() [all …]
|
/dports/graphics/mesa-gallium-vdpau/mesa-21.3.6/src/gallium/frontends/nine/ |
H A D | threadpool.c | 52 while (!pool->workqueue && !pool->shutdown) in threadpool_worker() 53 pthread_cond_wait(&pool->new_work, &pool->m); in threadpool_worker() 90 struct threadpool *pool = calloc(1, sizeof(*pool)); in _mesa_threadpool_create() local 92 if (!pool) in _mesa_threadpool_create() 103 pthread_create(&pool->pthread, NULL, threadpool_worker, pool); in _mesa_threadpool_create() 105 return pool; in _mesa_threadpool_create() 111 if (!pool) in _mesa_threadpool_destroy() 119 if (pool->wthread) { in _mesa_threadpool_destroy() 127 free(pool); in _mesa_threadpool_destroy() 147 if (!pool) { in _mesa_threadpool_queue_task() [all …]
|
/dports/graphics/mesa-devel/mesa-22.0-branchpoint-2059-ge8a63cf61ec/src/gallium/frontends/nine/ |
H A D | threadpool.c | 52 while (!pool->workqueue && !pool->shutdown) in threadpool_worker() 53 pthread_cond_wait(&pool->new_work, &pool->m); in threadpool_worker() 90 struct threadpool *pool = calloc(1, sizeof(*pool)); in _mesa_threadpool_create() local 92 if (!pool) in _mesa_threadpool_create() 103 pthread_create(&pool->pthread, NULL, threadpool_worker, pool); in _mesa_threadpool_create() 105 return pool; in _mesa_threadpool_create() 111 if (!pool) in _mesa_threadpool_destroy() 119 if (pool->wthread) { in _mesa_threadpool_destroy() 127 free(pool); in _mesa_threadpool_destroy() 147 if (!pool) { in _mesa_threadpool_queue_task() [all …]
|
/dports/graphics/mesa-dri-classic/mesa-20.2.3/src/gallium/frontends/nine/ |
H A D | threadpool.c | 52 while (!pool->workqueue && !pool->shutdown) in threadpool_worker() 53 pthread_cond_wait(&pool->new_work, &pool->m); in threadpool_worker() 90 struct threadpool *pool = calloc(1, sizeof(*pool)); in _mesa_threadpool_create() local 92 if (!pool) in _mesa_threadpool_create() 103 pthread_create(&pool->pthread, NULL, threadpool_worker, pool); in _mesa_threadpool_create() 105 return pool; in _mesa_threadpool_create() 111 if (!pool) in _mesa_threadpool_destroy() 119 if (pool->wthread) { in _mesa_threadpool_destroy() 127 free(pool); in _mesa_threadpool_destroy() 147 if (!pool) { in _mesa_threadpool_queue_task() [all …]
|
/dports/graphics/mesa-dri/mesa-21.3.6/src/gallium/frontends/nine/ |
H A D | threadpool.c | 52 while (!pool->workqueue && !pool->shutdown) in threadpool_worker() 53 pthread_cond_wait(&pool->new_work, &pool->m); in threadpool_worker() 90 struct threadpool *pool = calloc(1, sizeof(*pool)); in _mesa_threadpool_create() local 92 if (!pool) in _mesa_threadpool_create() 103 pthread_create(&pool->pthread, NULL, threadpool_worker, pool); in _mesa_threadpool_create() 105 return pool; in _mesa_threadpool_create() 111 if (!pool) in _mesa_threadpool_destroy() 119 if (pool->wthread) { in _mesa_threadpool_destroy() 127 free(pool); in _mesa_threadpool_destroy() 147 if (!pool) { in _mesa_threadpool_queue_task() [all …]
|
/dports/devel/dbus/dbus-1.12.20/dbus/ |
H A D | dbus-mempool.c | 141 DBusMemPool *pool; in _dbus_mem_pool_new() local 144 if (pool == NULL) in _dbus_mem_pool_new() 171 pool->block_size = pool->element_size * 8; in _dbus_mem_pool_new() 178 return pool; in _dbus_mem_pool_new() 203 dbus_free (pool); in _dbus_mem_pool_free() 262 pool->free_elements = pool->free_elements->next; in _dbus_mem_pool_alloc() 264 VALGRIND_MEMPOOL_ALLOC (pool, element, pool->element_size); in _dbus_mem_pool_alloc() 278 pool->blocks->used_so_far == pool->block_size) in _dbus_mem_pool_alloc() 328 pool->blocks->used_so_far += pool->element_size; in _dbus_mem_pool_alloc() 421 if (pool != NULL) in _dbus_mem_pool_get_stats() [all …]
|
/dports/dns/samba-nsupdate/bind-9.16.5/lib/isc/ |
H A D | taskpool.c | 43 pool = isc_mem_get(mctx, sizeof(*pool)); in alloc_pool() 45 pool->mctx = NULL; in alloc_pool() 49 pool->tmgr = tmgr; in alloc_pool() 55 *poolp = pool; in alloc_pool() 80 *poolp = pool; in isc_taskpool_create() 104 pool = *sourcep; in isc_taskpool_expand() 111 alloc_pool(pool->tmgr, pool->mctx, size, pool->quantum, in isc_taskpool_expand() 122 result = isc_task_create(pool->tmgr, pool->quantum, in isc_taskpool_expand() 133 pool = newpool; in isc_taskpool_expand() 150 isc_mem_put(pool->mctx, pool->tasks, in isc_taskpool_destroy() [all …]
|
/dports/net/torsocks/torsocks-2.3.0/src/common/ |
H A D | onion.c | 63 assert(pool); in insert_onion_entry() 65 if (pool->count > pool->size) { in insert_onion_entry() 67 ret = resize_onion_pool(pool, pool->size * 2); in insert_onion_entry() 73 pool->entries[pool->next_entry_pos] = entry; in insert_onion_entry() 75 pool->count++; in insert_onion_entry() 95 assert(pool); in onion_pool_init() 111 pool->max_pos = pool->base + ((1UL << (32 - mask)) - 1); in onion_pool_init() 120 pool->size = min(DEFAULT_ONION_POOL_SIZE, (pool->max_pos - pool->base) + 1); in onion_pool_init() 122 memcpy(&pool->ip_subnet, &addr, sizeof(pool->ip_subnet)); in onion_pool_init() 132 pool->base, pool->max_pos, pool->size); in onion_pool_init() [all …]
|
/dports/emulators/qemu/qemu-6.2.0/block/ |
H A D | aio_task.c | 40 AioTaskPool *pool = task->pool; in aio_task_co() local 42 assert(pool->busy_tasks < pool->max_busy_tasks); in aio_task_co() 43 pool->busy_tasks++; in aio_task_co() 47 pool->busy_tasks--; in aio_task_co() 55 if (pool->waiting) { in aio_task_co() 70 assert(pool->busy_tasks < pool->max_busy_tasks); in aio_task_pool_wait_one() 75 if (pool->busy_tasks < pool->max_busy_tasks) { in aio_task_pool_wait_slot() 93 task->pool = pool; in aio_task_pool_start_task() 106 return pool; in aio_task_pool_new() 111 g_free(pool); in aio_task_pool_free() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/chromecast/net/ |
H A D | io_buffer_pool_unittest.cc | 19 EXPECT_EQ(nullptr, pool->GetBuffer()); in TEST() 21 EXPECT_EQ(0u, pool->max_buffers()); in TEST() 23 EXPECT_EQ(0u, pool->NumFreeForTesting()); in TEST() 30 EXPECT_EQ(nullptr, pool->GetBuffer()); in TEST() 31 EXPECT_EQ(1u, pool->max_buffers()); in TEST() 46 EXPECT_EQ(nullptr, pool->GetBuffer()); in TEST() 47 EXPECT_EQ(4u, pool->max_buffers()); in TEST() 71 buffer1 = pool->GetBuffer(); in TEST() 88 pool = nullptr; in TEST() 94 pool->Preallocate(8); in TEST() [all …]
|
/dports/www/firefox/firefox-99.0/third_party/rust/cranelift-entity/src/ |
H A D | list.rs | 470 self.clear(pool); in remove_last() 521 self.clear(pool); in truncate() 592 let b1 = pool.alloc(0); in block_allocator() 598 pool.free(b2, 1); in block_allocator() 606 pool.free(b1, 0); in block_allocator() 607 pool.free(b3, 0); in block_allocator() 631 list.clear(pool); in empty_list() 740 list.remove(3, pool); in insert_remove() 743 list.remove(2, pool); in insert_remove() 746 list.remove(0, pool); in insert_remove() [all …]
|
/dports/mail/thunderbird/thunderbird-91.8.0/third_party/rust/cranelift-entity/src/ |
H A D | list.rs | 470 self.clear(pool); in remove_last() 521 self.clear(pool); in truncate() 592 let b1 = pool.alloc(0); in block_allocator() 598 pool.free(b2, 1); in block_allocator() 606 pool.free(b1, 0); in block_allocator() 607 pool.free(b3, 0); in block_allocator() 631 list.clear(pool); in empty_list() 740 list.remove(3, pool); in insert_remove() 743 list.remove(2, pool); in insert_remove() 746 list.remove(0, pool); in insert_remove() [all …]
|
/dports/lang/rust/rustc-1.58.1-src/vendor/cranelift-entity/src/ |
H A D | list.rs | 470 self.clear(pool); in remove_last() 521 self.clear(pool); in truncate() 592 let b1 = pool.alloc(0); in block_allocator() 598 pool.free(b2, 1); in block_allocator() 606 pool.free(b1, 0); in block_allocator() 607 pool.free(b3, 0); in block_allocator() 631 list.clear(pool); in empty_list() 740 list.remove(3, pool); in insert_remove() 743 list.remove(2, pool); in insert_remove() 746 list.remove(0, pool); in insert_remove() [all …]
|
/dports/www/firefox-esr/firefox-91.8.0/third_party/rust/cranelift-entity/src/ |
H A D | list.rs | 470 self.clear(pool); in remove_last() 521 self.clear(pool); in truncate() 592 let b1 = pool.alloc(0); in block_allocator() 598 pool.free(b2, 1); in block_allocator() 606 pool.free(b1, 0); in block_allocator() 607 pool.free(b3, 0); in block_allocator() 631 list.clear(pool); in empty_list() 740 list.remove(3, pool); in insert_remove() 743 list.remove(2, pool); in insert_remove() 746 list.remove(0, pool); in insert_remove() [all …]
|
/dports/lang/spidermonkey78/firefox-78.9.0/third_party/python/urllib3/test/with_dummyserver/ |
H A D | test_connectionpool.py | 437 conn = pool.pool.get() 451 conn = pool.pool.get() 463 conn = pool.pool.get() 640 assert pool.pool.qsize() == MAXSIZE 643 pool.pool.get() 644 assert pool.pool.qsize() == MAXSIZE - 1 648 assert pool.pool.qsize() == MAXSIZE - 1 652 assert pool.pool.qsize() == MAXSIZE - 2 655 assert pool.pool.qsize() == MAXSIZE - 2 659 assert pool.pool.qsize() == MAXSIZE - 2 [all …]
|
/dports/net/samba412/samba-4.12.15/lib/pthreadpool/ |
H A D | pthreadpool_pipe.c | 44 if (pool == NULL) { in pthreadpool_pipe_init() 47 pool->pid = getpid(); in pthreadpool_pipe_init() 52 free(pool); in pthreadpool_pipe_init() 56 ret = pthreadpool_init(max_threads, &pool->pool, in pthreadpool_pipe_init() 61 free(pool); in pthreadpool_pipe_init() 65 *presult = pool; in pthreadpool_pipe_init() 96 ret = pthreadpool_destroy(pool->pool); in pthreadpool_pipe_destroy() 107 free(pool); in pthreadpool_pipe_destroy() 140 pool->num_jobs = 0; in pthreadpool_pipe_reinit() 156 ret = pthreadpool_add_job(pool->pool, job_id, fn, private_data); in pthreadpool_pipe_add_job() [all …]
|
/dports/devel/stfl/stfl-0.24/ |
H A D | iconv.c | 55 pool->list = 0; in stfl_ipool_create() 57 return pool; in stfl_ipool_create() 68 pool->list = entry; in stfl_ipool_add() 78 if (!pool || !buf) in stfl_ipool_towc() 89 pool->to_wc_desc = iconv_open("WCHAR_T", pool->code); in stfl_ipool_towc() 146 if (!pool || !buf) in stfl_ipool_fromwc() 157 pool->from_wc_desc = iconv_open(pool->code, "WCHAR_T"); in stfl_ipool_fromwc() 214 if (!pool) in stfl_ipool_flush() 231 if (!pool) in stfl_ipool_destroy() 236 free(pool->code); in stfl_ipool_destroy() [all …]
|
/dports/net/haproxy20/haproxy-2.0.26/include/common/ |
H A D | memory.h | 43 #define POOL_LINK(pool, item) (void **)(((char *)item) + (pool->size)) argument 197 *POOL_LINK(pool, item) = (void *)pool; in __pool_get_from_cache() 234 _HA_ATOMIC_STORE(&pool->free_list, *POOL_LINK(pool, ret)); in __pool_get_first() 238 *POOL_LINK(pool, ret) = (void *)pool; in __pool_get_first() 341 if (*POOL_LINK(pool, ptr) != (void *)pool) in pool_free() 361 pool->free_list = *POOL_LINK(pool, p); in __pool_get_first() 362 pool->used++; in __pool_get_first() 365 *POOL_LINK(pool, p) = (void *)pool; in __pool_get_first() 490 if (*POOL_LINK(pool, ptr) != (void *)pool) in pool_free() 495 *POOL_LINK(pool, ptr) = (void *)pool->free_list; in pool_free() [all …]
|
/dports/www/firefox-esr/firefox-91.8.0/nsprpub/lib/ds/ |
H A D | plarena.c | 23 #define COUNT(pool,what) (pool)->stats.what++ argument 54 pool->first.next = NULL; in PL_InitArenaPool() 58 pool->first.base = pool->first.avail = pool->first.limit = in PL_InitArenaPool() 59 (PRUword)PL_ARENA_ALIGN(pool, &pool->first + 1); in PL_InitArenaPool() 60 pool->current = &pool->first; in PL_InitArenaPool() 67 pool->arenasize = size - (sizeof(PLArena) + pool->mask); in PL_InitArenaPool() 73 memset(&pool->stats, 0, sizeof pool->stats); in PL_InitArenaPool() 116 a = pool->current; in PL_ArenaAllocate() 209 pool->current = head; in FreeArenaList() 227 FreeArenaList(pool, &pool->first); in PL_FreeArenaPool() [all …]
|
/dports/www/firefox/firefox-99.0/nsprpub/lib/ds/ |
H A D | plarena.c | 23 #define COUNT(pool,what) (pool)->stats.what++ argument 54 pool->first.next = NULL; in PL_InitArenaPool() 58 pool->first.base = pool->first.avail = pool->first.limit = in PL_InitArenaPool() 59 (PRUword)PL_ARENA_ALIGN(pool, &pool->first + 1); in PL_InitArenaPool() 60 pool->current = &pool->first; in PL_InitArenaPool() 67 pool->arenasize = size - (sizeof(PLArena) + pool->mask); in PL_InitArenaPool() 73 memset(&pool->stats, 0, sizeof pool->stats); in PL_InitArenaPool() 116 a = pool->current; in PL_ArenaAllocate() 209 pool->current = head; in FreeArenaList() 227 FreeArenaList(pool, &pool->first); in PL_FreeArenaPool() [all …]
|
/dports/lang/spidermonkey60/firefox-60.9.0/nsprpub/lib/ds/ |
H A D | plarena.c | 23 #define COUNT(pool,what) (pool)->stats.what++ argument 50 pool->first.next = NULL; in PL_InitArenaPool() 54 pool->first.base = pool->first.avail = pool->first.limit = in PL_InitArenaPool() 55 (PRUword)PL_ARENA_ALIGN(pool, &pool->first + 1); in PL_InitArenaPool() 56 pool->current = &pool->first; in PL_InitArenaPool() 63 pool->arenasize = size - (sizeof(PLArena) + pool->mask); in PL_InitArenaPool() 67 memset(&pool->stats, 0, sizeof pool->stats); in PL_InitArenaPool() 109 a = pool->current; in PL_ArenaAllocate() 198 pool->current = head; in FreeArenaList() 216 FreeArenaList(pool, &pool->first); in PL_FreeArenaPool() [all …]
|
/dports/www/firefox-legacy/firefox-52.8.0esr/nsprpub/lib/ds/ |
H A D | plarena.c | 23 #define COUNT(pool,what) (pool)->stats.what++ argument 50 pool->first.next = NULL; in PL_InitArenaPool() 54 pool->first.base = pool->first.avail = pool->first.limit = in PL_InitArenaPool() 55 (PRUword)PL_ARENA_ALIGN(pool, &pool->first + 1); in PL_InitArenaPool() 56 pool->current = &pool->first; in PL_InitArenaPool() 63 pool->arenasize = size - (sizeof(PLArena) + pool->mask); in PL_InitArenaPool() 67 memset(&pool->stats, 0, sizeof pool->stats); in PL_InitArenaPool() 109 a = pool->current; in PL_ArenaAllocate() 198 pool->current = head; in FreeArenaList() 216 FreeArenaList(pool, &pool->first); in PL_FreeArenaPool() [all …]
|
/dports/devel/nspr/nspr-4.33/nspr/lib/ds/ |
H A D | plarena.c | 23 #define COUNT(pool,what) (pool)->stats.what++ argument 54 pool->first.next = NULL; in PL_InitArenaPool() 58 pool->first.base = pool->first.avail = pool->first.limit = in PL_InitArenaPool() 59 (PRUword)PL_ARENA_ALIGN(pool, &pool->first + 1); in PL_InitArenaPool() 60 pool->current = &pool->first; in PL_InitArenaPool() 67 pool->arenasize = size - (sizeof(PLArena) + pool->mask); in PL_InitArenaPool() 73 memset(&pool->stats, 0, sizeof pool->stats); in PL_InitArenaPool() 116 a = pool->current; in PL_ArenaAllocate() 209 pool->current = head; in FreeArenaList() 227 FreeArenaList(pool, &pool->first); in PL_FreeArenaPool() [all …]
|