C ++ Is there any write-safe component (faster than unsafe lock counterparts)?

So, I tried some components (maps, sets, vectors, arrays, U queues, name it), I always need to make the tham thread safe ... and it does a slow pace ... Are there any thread safe entries in the component? in boost or anywhere?

+2
source share
3 answers

You can find some of the Intel threading blocks. You can also find them in Microsoft PPL.

+2
source

You can take a look at libcds : Max Hizzynski's parallel data structures .

It contains universal / custom locks and algorithms. It comes with extensive tests. I would say the documentation is about average.

General information . The library looked ready to be offered in boost, but (AFAICT) it depended on patent encryption algorithms that might contain

+1
source

Boost.Lockfree has recently been reviewed for inclusion in Boost. I do not know the results of this review.

+1
source

Source: https://habr.com/ru/post/1369312/


All Articles