c++11 std::mutex compiler error in Visual Studio 2012

后端 未结 3 600
说谎
说谎 2021-01-14 05:57

This a quest about deadlock in C++11 standard.

In the sec3.2.4 of C++ Concurrency in Action, there is an example for preventing multithreads from deadlock. For guys

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-14 06:24

    From this reference:

    The mutex class is non-copyable.

    A mutex can't be copied or moved.

提交回复
热议问题