std::vector, thread-safety, multi-threading

后端 未结 3 1060
傲寒
傲寒 2020-11-27 08:21

I am using std::vector as shared data in a multi-threaded application. I encapsulate the thread inside a class, e.g.,

class ABC {
public:
    double a, b, c         


        
3条回答
  •  暖寄归人
    2020-11-27 08:46

    Maybe you could use this instead?

    concurrent_vector... from the Intel Threading Building Blocks

    https://software.intel.com/en-us/node/467758

提交回复
热议问题