dispenso
A library for task parallelism
 
Loading...
Searching...
No Matches
pool_allocator.h File Reference
#include <atomic>
#include <functional>
#include <vector>
#include <dispenso/platform.h>

Go to the source code of this file.

Classes

class  dispenso::PoolAllocatorT< kThreadSafe >
 

Typedefs

using dispenso::PoolAllocator = PoolAllocatorT< true >
 
using dispenso::NoLockPoolAllocator = PoolAllocatorT< false >
 

Detailed Description

A pool allocator to help reduce calls to the underlying allocation and deallocation functions that can be provided custom backing allocation and deallocation functions, e.g. cudaMalloc, cudaFree.

Definition in file pool_allocator.h.

Typedef Documentation

◆ NoLockPoolAllocator

using dispenso::NoLockPoolAllocator = typedef PoolAllocatorT<false>

Definition at line 95 of file pool_allocator.h.

◆ PoolAllocator

using dispenso::PoolAllocator = typedef PoolAllocatorT<true>

Definition at line 94 of file pool_allocator.h.