/external/mesa3d/src/gallium/state_trackers/nine/ |
threadpool.c | 43 struct threadpool *pool = data; local 45 pthread_mutex_lock(&pool->m); 47 while (!pool->shutdown) { 51 while (!pool->workqueue && !pool->shutdown) 52 pthread_cond_wait(&pool->new_work, &pool->m); 54 if (pool->shutdown) { 55 pthread_mutex_unlock(&pool->m); 63 task = pool->workqueue 82 struct threadpool *pool = calloc(1, sizeof(*pool)); local [all...] |
nine_helpers.c | 26 nine_range_pool_more(struct nine_range_pool *pool) 30 assert(!pool->free); 32 if (pool->num_slabs == pool->num_slabs_max) { 33 unsigned p = pool->num_slabs_max; 34 unsigned n = pool->num_slabs_max * 2; 37 pool->slabs = REALLOC(pool->slabs, 40 pool->num_slabs_max = n; 42 pool->free = pool->slabs[pool->num_slabs++] = r [all...] |
/external/libmicrohttpd/src/microhttpd/ |
memorypool.c | 22 * @brief memory pool 47 * Handle for a memory pool. Pools are not reentrant and must not be 54 * Pointer to the pool's memory 59 * Size of the pool. 74 * #MHD_NO if pool was malloc'ed, #MHD_YES if mmapped (VirtualAlloc'ed for W32). 81 * Create a memory pool. 83 * @param max maximum size of the pool 89 struct MemoryPool *pool; local 91 pool = malloc (sizeof (struct MemoryPool)); 92 if (NULL == pool) [all...] |
memorypool.h | 22 * @brief memory pool; mostly used for efficient (de)allocation 34 * Opaque handle for a memory pool. 42 * Create a memory pool. 44 * @param max maximum size of the pool 52 * Destroy a memory pool. 54 * @param pool memory pool to destroy 57 MHD_pool_destroy (struct MemoryPool *pool); 61 * Allocate size bytes from the pool. 63 * @param pool memory pool to use for the operatio [all...] |
/external/mesa3d/src/gallium/drivers/r300/compiler/ |
memory_pool.c | 38 void memory_pool_init(struct memory_pool * pool) 40 memset(pool, 0, sizeof(struct memory_pool)); 44 void memory_pool_destroy(struct memory_pool * pool) 46 while(pool->blocks) { 47 struct memory_block * block = pool->blocks; 48 pool->blocks = block->next; 53 static void refill_pool(struct memory_pool * pool) 55 unsigned int blocksize = pool->total_allocated; 62 newblock->next = pool->blocks; 63 pool->blocks = newblock [all...] |
/external/volley/src/test/java/com/android/volley/toolbox/ |
PoolingByteArrayOutputStreamTest.java | 28 ByteArrayPool pool = new ByteArrayPool(32768); local 29 writeOneBuffer(pool); 30 writeOneBuffer(pool); 31 writeOneBuffer(pool); 35 ByteArrayPool pool = new ByteArrayPool(32768); local 36 writeBytesIndividually(pool); 37 writeBytesIndividually(pool); 38 writeBytesIndividually(pool); 42 ByteArrayPool pool = new ByteArrayPool(0); local 43 writeOneBuffer(pool); 49 ByteArrayPool pool = new ByteArrayPool(0); local [all...] |
ByteArrayPoolTest.java | 28 ByteArrayPool pool = new ByteArrayPool(32); local 30 byte[] buf1 = pool.getBuf(16); 31 byte[] buf2 = pool.getBuf(16); 33 pool.returnBuf(buf1); 34 pool.returnBuf(buf2); 36 byte[] buf3 = pool.getBuf(16); 37 byte[] buf4 = pool.getBuf(16); 44 ByteArrayPool pool = new ByteArrayPool(32); local 46 byte[] buf1 = pool.getBuf(16); 47 byte[] buf2 = pool.getBuf(16) 65 ByteArrayPool pool = new ByteArrayPool(32); local [all...] |
/external/skia/tests/ |
DiscardableMemoryPoolTest.cpp | 12 sk_sp<SkDiscardableMemoryPool> pool(SkDiscardableMemoryPool::Make(1)); 13 pool->setRAMBudget(3); 14 REPORTER_ASSERT(reporter, 0 == pool->getRAMUsed()); 16 std::unique_ptr<SkDiscardableMemory> dm1(pool->create(100)); 18 REPORTER_ASSERT(reporter, 100 == pool->getRAMUsed()); 20 REPORTER_ASSERT(reporter, 0 == pool->getRAMUsed()); 24 std::unique_ptr<SkDiscardableMemory> dm2(pool->create(200)); 25 REPORTER_ASSERT(reporter, 200 == pool->getRAMUsed()); 26 pool->setRAMBudget(400); 28 REPORTER_ASSERT(reporter, 200 == pool->getRAMUsed()) [all...] |
/external/skqp/tests/ |
DiscardableMemoryPoolTest.cpp | 12 sk_sp<SkDiscardableMemoryPool> pool(SkDiscardableMemoryPool::Make(1)); 13 pool->setRAMBudget(3); 14 REPORTER_ASSERT(reporter, 0 == pool->getRAMUsed()); 16 std::unique_ptr<SkDiscardableMemory> dm1(pool->create(100)); 18 REPORTER_ASSERT(reporter, 100 == pool->getRAMUsed()); 20 REPORTER_ASSERT(reporter, 0 == pool->getRAMUsed()); 24 std::unique_ptr<SkDiscardableMemory> dm2(pool->create(200)); 25 REPORTER_ASSERT(reporter, 200 == pool->getRAMUsed()); 26 pool->setRAMBudget(400); 28 REPORTER_ASSERT(reporter, 200 == pool->getRAMUsed()) [all...] |
/external/llvm/unittests/Support/ |
StringPool.cpp | 18 StringPool pool; local 19 const PooledStringPtr a = pool.intern("a"); 20 const PooledStringPtr b = pool.intern("b"); 25 StringPool pool; local 26 const PooledStringPtr a = pool.intern("a"); 27 const PooledStringPtr b = pool.intern("b");
|
/external/javassist/src/main/javassist/ |
Translator.java | 35 * @param pool the <code>ClassPool</code> that this translator 42 void start(ClassPool pool) 50 * pool.get(classname).toBytecode()</pre></ul> 60 * @param pool the <code>ClassPool</code> that this translator 68 void onLoad(ClassPool pool, String classname)
|
/external/protobuf/php/ext/google/protobuf/ |
test.php | 6 $pool = get_generated_pool(); variable 7 $pool->addMessage("TestMessage")
|
/external/tensorflow/tensorflow/core/common_runtime/gpu/ |
pool_allocator_test.cc | 31 PoolAllocator pool( 36 new NoopRounder, "pool"); 38 EXPECT_EQ(nullptr, pool.AllocateRaw(4 /*alignment*/, 0 /*num_bytes*/)); 39 pool.DeallocateRaw(nullptr); // Should not crash. 40 EXPECT_EQ(0, pool.get_from_pool_count()); 41 EXPECT_EQ(0, pool.put_count()); 42 EXPECT_EQ(0, pool.allocated_count()); 43 EXPECT_EQ(0, pool.evicted_count()); 49 PoolAllocator pool( 54 new NoopRounder, "pool"); [all...] |
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/pool/ |
Markable.java | 32 package org.jf.dexlib2.writer.pool;
|
/system/libufdt/include/ |
ufdt_node_pool.h | 30 void ufdt_node_pool_construct(struct ufdt_node_pool *pool); 31 void ufdt_node_pool_destruct(struct ufdt_node_pool *pool); 33 void *ufdt_node_pool_alloc(struct ufdt_node_pool *pool); 34 void ufdt_node_pool_free(struct ufdt_node_pool *pool, void *node);
|
/external/mesa3d/src/gallium/auxiliary/pipebuffer/ |
pb_bufmgr_pool.c | 31 * Batch buffer pool management. 109 struct pool_pb_manager *pool = pool_buf->mgr; local 113 pipe_mutex_lock(pool->mutex); 114 LIST_ADD(&pool_buf->head, &pool->free); 115 pool->numFree++; 116 pipe_mutex_unlock(pool->mutex); 124 struct pool_pb_manager *pool = pool_buf->mgr; local 129 pipe_mutex_lock(pool->mutex); 130 map = (unsigned char *) pool->map + pool_buf->start; 131 pipe_mutex_unlock(pool->mutex) 149 struct pool_pb_manager *pool = pool_buf->mgr; local 159 struct pool_pb_manager *pool = pool_buf->mgr; local 170 struct pool_pb_manager *pool = pool_buf->mgr; local 192 struct pool_pb_manager *pool = pool_pb_manager(mgr); local 240 struct pool_pb_manager *pool = pool_pb_manager(mgr); local 260 struct pool_pb_manager *pool; local [all...] |
/external/llvm/test/MC/ARM/ |
pool.s | 6 .global pool 7 .type pool,%function 8 pool: label 11 .pool 13 @ CHECK-LABEL: pool
|
/external/mesa3d/src/util/ |
slab.c | 50 * - a pointer to the child pool to which this element belongs, or 64 /* Next page in the same child pool. */ 85 * pool has been destroyed). Mark the element as freed and free the whole page 101 * Create a parent pool for the allocation of same-sized objects. 124 * Create a child pool linked to the given parent. 126 void slab_create_child(struct slab_child_pool *pool, 129 pool->parent = parent; 130 pool->pages = NULL; 131 pool->free = NULL; 132 pool->migrated = NULL [all...] |
/external/boringssl/src/crypto/pool/ |
pool.c | 15 #include <openssl/pool.h> 41 CRYPTO_BUFFER_POOL *pool = OPENSSL_malloc(sizeof(CRYPTO_BUFFER_POOL)); local 42 if (pool == NULL) { 46 OPENSSL_memset(pool, 0, sizeof(CRYPTO_BUFFER_POOL)); 47 pool->bufs = lh_CRYPTO_BUFFER_new(CRYPTO_BUFFER_hash, CRYPTO_BUFFER_cmp); 48 if (pool->bufs == NULL) { 49 OPENSSL_free(pool); 53 CRYPTO_MUTEX_init(&pool->lock); 55 return pool; 58 void CRYPTO_BUFFER_POOL_free(CRYPTO_BUFFER_POOL *pool) { 147 CRYPTO_BUFFER_POOL *const pool = buf->pool; local [all...] |
/hardware/intel/common/libwsbm/src/ |
wsbm_mallocpool.c | 56 pool_create(struct _WsbmBufferPool *pool, 64 wsbmBufStorageInit(&mBuf->buf, pool); 156 pool_takedown(struct _WsbmBufferPool *pool) 158 free(pool); 164 struct _WsbmBufferPool *pool; local 166 pool = (struct _WsbmBufferPool *)calloc(1, sizeof(*pool)); 167 if (!pool) 170 pool->fd = -1; 171 pool->map = &pool_map [all...] |
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
ConnectionPoolTest.java | 48 ConnectionPool pool = new ConnectionPool(Integer.MAX_VALUE, 100L, TimeUnit.NANOSECONDS); local 49 pool.setCleanupRunnableForTest(emptyRunnable); 51 RealConnection c1 = newConnection(pool, routeA1, 50L); 53 // Running at time 50, the pool returns that nothing can be evicted until time 150. 54 assertEquals(100L, pool.cleanup(50L)); 55 assertEquals(1, pool.getConnectionCount()); 58 // Running at time 60, the pool returns that nothing can be evicted until time 150. 59 assertEquals(90L, pool.cleanup(60L)); 60 assertEquals(1, pool.getConnectionCount()); 63 // Running at time 149, the pool returns that nothing can be evicted until time 150 80 ConnectionPool pool = new ConnectionPool(Integer.MAX_VALUE, 100L, TimeUnit.NANOSECONDS); local 104 ConnectionPool pool = new ConnectionPool(Integer.MAX_VALUE, 100L, TimeUnit.NANOSECONDS); local 136 ConnectionPool pool = new ConnectionPool(2, 100L, TimeUnit.NANOSECONDS); local 160 ConnectionPool pool = new ConnectionPool(2, 100L, TimeUnit.NANOSECONDS); local [all...] |
/external/fio/ |
smalloc.c | 29 #define INITIAL_SIZE 16*1024*1024 /* new pool size */ 42 struct pool { struct 43 struct fio_mutex *lock; /* protects this pool */ 59 static struct pool mp[MAX_POOLS]; 63 static inline int ptr_valid(struct pool *pool, void *ptr) 65 unsigned int pool_size = pool->nr_blocks * SMALLOC_BPL; 67 return (ptr >= pool->map) && (ptr < pool->map + pool_size); 75 static int blocks_iter(struct pool *pool, unsigned int pool_idx 322 struct pool *pool = NULL; local [all...] |
/frameworks/base/libs/hwui/tests/unit/ |
OffscreenBufferPoolTests.cpp | 72 OffscreenBufferPool pool; local 73 EXPECT_EQ(0u, pool.getCount()) << "pool must be created empty"; 74 EXPECT_EQ(0u, pool.getSize()) << "pool must be created empty"; 76 EXPECT_EQ(DeviceInfo::multiplyByResolution(4 * 4), pool.getMaxSize()); 80 OffscreenBufferPool pool; local 82 auto layer = pool.get(renderThread.renderState(), 100u, 200u); 86 ASSERT_LT(layer->getSizeInBytes(), pool.getMaxSize()); 88 pool.putOrDelete(layer) 103 OffscreenBufferPool pool; local 144 OffscreenBufferPool pool; local 179 OffscreenBufferPool pool; local 216 OffscreenBufferPool pool; local 227 OffscreenBufferPool pool; local [all...] |
/external/libunwind/src/mi/ |
mempool.c | 86 free_object (struct mempool *pool, void *object) 90 obj->next = pool->free_list; 91 pool->free_list = obj; 92 ++pool->num_free; 96 add_memory (struct mempool *pool, char *mem, size_t size, size_t obj_size) 101 free_object (pool, obj); 105 expand (struct mempool *pool) 110 size = pool->chunk_size; 114 size = UNW_ALIGN(pool->obj_size, pg_size); 119 size = pool->obj_size [all...] |
/external/deqp/framework/delibs/depool/ |
deMemPool.c | 2 * drawElements Memory Pool Library 21 * \brief Memory pool management. 48 * Represent a page of memory allocate by a memory pool. 69 * \brief Memory pool. 71 * A pool of memory from which individual memory allocations can be made. 73 * but rather all of the memory allocated from a pool is freed when the pool 76 * The pools can be arranged into a hierarchy. If a pool with children is 78 * the pool itself. 82 * creating the root pool with the deMemPool_createFailingRoot() function 171 deMemPool* pool; local 243 deMemPool* pool = createPoolInternal(DE_NULL); local 283 deMemPool* pool; local [all...] |