foonathan / memory

STL compatible C++ memory allocator library using a new RawAllocator concept that is similar to an Allocator but easier to use and write.
https://memory.foonathan.net
zlib License
1.5k stars 195 forks source link

Thread safety #159

Closed marcovc closed 1 year ago

marcovc commented 1 year ago

Hi,

I've seen an old closed issue regarding thread safety, but didn't really understood the general case.

If I have two shared_ptrs sharing the same pool allocator, then allocating/deleting them from two different threads is problematic, right?