Home
last modified time | relevance | path

Searched refs:threadpool_size (Results 1 – 1 of 1) sorted by relevance

/external/pthreadpool/src/
Dmemory.c27 …const size_t threadpool_size = sizeof(struct pthreadpool) + threads_count * sizeof(struct thread_i… in pthreadpool_allocate() local
34 threadpool = memalign(PTHREADPOOL_CACHELINE_SIZE, threadpool_size); in pthreadpool_allocate()
39 threadpool = _aligned_malloc(threadpool_size, PTHREADPOOL_CACHELINE_SIZE); in pthreadpool_allocate()
44 if (posix_memalign((void**) &threadpool, PTHREADPOOL_CACHELINE_SIZE, threadpool_size) != 0) { in pthreadpool_allocate()
48 memset(threadpool, 0, threadpool_size); in pthreadpool_allocate()
58 …const size_t threadpool_size = sizeof(struct pthreadpool) + threadpool->threads_count.value * size… in pthreadpool_deallocate() local
59 memset(threadpool, 0, threadpool_size); in pthreadpool_deallocate()