Hello there. I have two matrix classes. The first matrix class is for normal use, where I use the STL allocator. This matrix class is designed for using in single thread environment. On the other hand, my code is also running heavy calculation in multi-threading environment, in which I use TBB to do parallelization. Inside the thread I designed the local matrix class (local to a single thread in multithreading environment), and it use the TBB scalable allocator.
Both of the two matrix classes are nearly same, and I want merge them together. I think that if the TBB scalable allocator could be used for single
thread environment, then I can use the TBB scalable allocator for both of the two purposes. Therefore, my question is; can we use the TBB scalable allocator for both multi-threading and single threading purpose?
Thanks a lot!