| /oneTBB/test/tbbmalloc/ |
| H A D | test_malloc_pools.cpp | 98 rml::MemoryPool *pool; in TestPoolReset() local 114 ok = pool_destroy(pool); in TestPoolReset() 131 pool = pl; in init() 176 rml::MemoryPool *pool; in TestSharedPool() local 237 delete []pool; in destroy() 298 rml::MemoryPool *pool; in TestTooSmallBuffer() local 339 rml::MemoryPool *pool; member in FixedPoolUse 361 rml::MemoryPool *pool; member in FixedPoolNomem 374 rml::MemoryPool *pool; member in FixedPoolSomeMem 650 pool_free(pool, o); in CreateUsablePool() [all …]
|
| H A D | test_scalable_allocator.cpp | 97 tbb::memory_pool<NullAllocator> pool; in TestZeroSpaceMemoryPool() local 98 bool allocated = pool.malloc(16) || pool.malloc(9*1024); in TestZeroSpaceMemoryPool() 132 tbb::fixed_pool pool(buf, sz); in TestSmallFixedSizePool() local 137 allocated = pool.malloc( 16 ) || pool.malloc( 9*1024 ); in TestSmallFixedSizePool() 150 rml::MemoryPool *pool; in TestSmallFixedSizePool() local 156 allocated = pool_malloc(pool, 16) || pool_malloc(pool, 9*1024); in TestSmallFixedSizePool() 157 pool_destroy(pool); in TestSmallFixedSizePool() 198 tbb::fixed_pool pool(buf, sizeof(buf)); 200 char *p1 = (char*)pool.malloc( 16 ); 213 REQUIRE( pool.malloc( sz ) ); [all …]
|
| /oneTBB/python/tbb/ |
| H A D | test.py | 50 from .pool import * 107 pool = Pool(4) # start worker threads 110 assert pool.map(return42, []) == [] 111 assert pool.apply_async(return42, []).get() == 42 112 assert pool.apply(return42, []) == 42 113 assert list(pool.imap(return42, iter([]))) == [] 115 assert pool.map_async(return42, []).get() == [] 123 it = pool.imap(f, range(10)) 130 result = pool.apply_async(timeout_work, (None,)) 200 pool.terminate() [all …]
|
| H A D | __init__.py | 15 import multiprocessing.pool 34 from .pool import * 35 from .pool import __all__ as pool__all 70 from multiprocessing.pool import worker 80 class TBBProcessPool27(multiprocessing.pool.Pool): 112 from multiprocessing.pool import worker 122 class TBBProcessPool3(multiprocessing.pool.Pool):
|
| /oneTBB/doc/main/reference/scalable_memory_pools/ |
| H A D | memory_pool_allocator_cls.rst | 9 A class template that provides a memory pool with a C++ allocator interface. 53 explicit memory_pool_allocator(memory_pool &pool) throw(); 54 explicit memory_pool_allocator(fixed_pool &pool) throw(); 76 memory_pool_allocator(memory_pool &pool) throw(); 77 memory_pool_allocator(fixed_pool &pool) throw(); 95 .. cpp:function:: explicit memory_pool_allocator(memory_pool &pool) 97 **Effects**: Constructs a memory pool allocator serviced by ``memory_pool`` instance pool. 101 .. cpp:function:: explicit memory_pool_allocator(fixed_pool &pool) 103 **Effects**: Constructs a memory pool allocator serviced by ``fixed_pool`` instance pool. 108 The code below provides a simple example of container construction with the use of a memory pool.
|
| H A D | memory_pool_cls.rst | 25 If the underlying allocator refers to another scalable memory pool, the inner pool (or pools) 26 must be destroyed before the outer pool is destroyed or recycled. 65 …**Effects**: Constructs a memory pool with an instance of underlying memory allocator of type ``Al… 71 The code below provides a simple example of allocation from an extensible memory pool.
|
| H A D | fixed_pool_cls.rst | 59 …**Effects**: Constructs a memory pool to manage the memory of size ``size`` pointed to by ``buffer… 65 The code below provides a simple example of allocation from a fixed pool.
|
| /oneTBB/src/tbb/ |
| H A D | small_object_pool.cpp | 35 auto pool = tls.my_small_object_pool; in allocate() local 36 return pool->allocate_impl(allocator, number_of_bytes); in allocate() 42 auto pool = tls->my_small_object_pool; in allocate() local 43 return pool->allocate_impl(allocator, number_of_bytes); in allocate() 74 auto pool = static_cast<small_object_pool_impl*>(&allocator); in deallocate() local 76 pool->deallocate_impl(ptr, number_of_bytes, *tls); in deallocate() 81 auto pool = static_cast<small_object_pool_impl*>(&allocator); in deallocate() local 82 pool->deallocate_impl(ptr, number_of_bytes, tls); in deallocate()
|
| H A D | arena.h | 453 d1::task **pool = victim->task_pool.load(std::memory_order_relaxed); in steal_task() local 455 if (pool == EmptyTaskPool || !(t = victim->steal_task(*this, isolation, k))) { in steal_task()
|
| /oneTBB/include/oneapi/tbb/detail/ |
| H A D | _small_object_pool.h | 40 TBB_EXPORT void* __TBB_EXPORTED_FUNC allocate(d1::small_object_pool*& pool, std::size_t number_of_b… 42 TBB_EXPORT void* __TBB_EXPORTED_FUNC allocate(d1::small_object_pool*& pool, std::size_t number_of_b… 43 TBB_EXPORT void __TBB_EXPORTED_FUNC deallocate(d1::small_object_pool& pool, void* ptr, std::size_t… 45 TBB_EXPORT void __TBB_EXPORTED_FUNC deallocate(d1::small_object_pool& pool, void* ptr, std::size_t…
|
| /oneTBB/doc/main/reference/ |
| H A D | scalable_memory_pools.rst | 11 Here, ``P`` represents an instance of the memory pool class. 25 - Returns a pointer to ``n`` bytes allocated from the memory pool.
|
| /oneTBB/include/oneapi/tbb/ |
| H A D | memory_pool.h | 100 explicit memory_pool_allocator(pool_type &pool) throw() : my_pool(&pool) {} in memory_pool_allocator() argument 152 explicit memory_pool_allocator( pool_type &pool) throw() : my_pool(&pool) {} in memory_pool_allocator() argument
|
| /oneTBB/doc/main/tbb_userguide/ |
| H A D | Mapping_Nodes2Tasks.rst | 17 from the work pool. 47 used to execute tasks from the oneTBB work pool while it is waiting.
|
| H A D | Flow_Graph_resource_tips.rst | 8 your graph, or control the maximum number of tasks in the work pool.
|
| H A D | Dependence_Graph.rst | 111 from the oneTBB work pool. 133 oneTBB work pool while it is waiting.
|
| /oneTBB/src/tbbmalloc/def/ |
| H A D | mac64-tbbmalloc.def | 32 /* memory pool stuff */
|
| H A D | lin32-tbbmalloc.def | 37 /* memory pool stuff */
|
| H A D | lin64-tbbmalloc.def | 37 /* memory pool stuff */
|
| H A D | win32-tbbmalloc.def | 35 ; memory pool stuff
|
| H A D | win64-tbbmalloc.def | 35 ; memory pool stuff
|
| /oneTBB/src/tbbmalloc/ |
| H A D | frontend.cpp | 2692 rml::MemoryPool *pool; in pool_create() local 2696 return pool; in pool_create() 2705 *pool = nullptr; in pool_create_v1() 2712 *pool = nullptr; in pool_create_v1() 2717 *pool = nullptr; in pool_create_v1() 2723 *pool = nullptr; in pool_create_v1() 2729 *pool = nullptr; in pool_create_v1() 2802 rml::internal::MemoryPool *pool; in pool_identify() local 2805 pool = header->memoryBlock->pool; in pool_identify() 2808 pool = block->getMemPool(); in pool_identify() [all …]
|
| /oneTBB/doc/main/tbb_userguide/Migration_Guide/ |
| H A D | Mixing_Two_Runtimes.rst | 12 oversubscription because each runtime will use its own pool of threads. It might lead to a
|
| /oneTBB/src/tbb/def/ |
| H A D | lin64-tbb.def | 44 /* Small object pool (small_object_pool.cpp) */
|
| H A D | lin32-tbb.def | 44 /* Small object pool (small_object_pool.cpp) */
|
| H A D | mac64-tbb.def | 46 # Small object pool (small_object_pool.cpp)
|