Home
last modified time | relevance | path

Searched refs:pool (Results 1 – 25 of 37) sorted by relevance

12

/oneTBB/test/tbbmalloc/
H A Dtest_malloc_pools.cpp98 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 Dtest_scalable_allocator.cpp97 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 Dtest.py50 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__.py15 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 Dmemory_pool_allocator_cls.rst9 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 Dmemory_pool_cls.rst25 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 Dfixed_pool_cls.rst59 …**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 Dsmall_object_pool.cpp35 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 Darena.h453 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.h40 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 Dscalable_memory_pools.rst11 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 Dmemory_pool.h100 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 DMapping_Nodes2Tasks.rst17 from the work pool.
47 used to execute tasks from the oneTBB work pool while it is waiting.
H A DFlow_Graph_resource_tips.rst8 your graph, or control the maximum number of tasks in the work pool.
H A DDependence_Graph.rst111 from the oneTBB work pool.
133 oneTBB work pool while it is waiting.
/oneTBB/src/tbbmalloc/def/
H A Dmac64-tbbmalloc.def32 /* memory pool stuff */
H A Dlin32-tbbmalloc.def37 /* memory pool stuff */
H A Dlin64-tbbmalloc.def37 /* memory pool stuff */
H A Dwin32-tbbmalloc.def35 ; memory pool stuff
H A Dwin64-tbbmalloc.def35 ; memory pool stuff
/oneTBB/src/tbbmalloc/
H A Dfrontend.cpp2692 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 DMixing_Two_Runtimes.rst12 oversubscription because each runtime will use its own pool of threads. It might lead to a
/oneTBB/src/tbb/def/
H A Dlin64-tbb.def44 /* Small object pool (small_object_pool.cpp) */
H A Dlin32-tbb.def44 /* Small object pool (small_object_pool.cpp) */
H A Dmac64-tbb.def46 # Small object pool (small_object_pool.cpp)

12