Thread Safe Allocator |
If you want thread-safe access to allocations that come from a particular umpire::Allocator
, you can create an instance of a umpire::strategy::ThreadSafeAllocator
object that will synchronize access to it.
In this recipe, we look at creating a umpire::strategy::ThreadSafeAllocator
for an umpire::strategy::QuickPool
object:
../../../examples/cookbook/recipe_thread_safe.cpp
The complete example is included below:
../../../examples/cookbook/recipe_thread_safe.cpp