Why is std::mutex neither copyable nor movable? [duplicate]
问题 This question already has answers here : Why is there no need to mark the move constructor of a type with a deleted copy constructor as deleted? (1 answer) Move constructor for std::mutex (2 answers) Closed 6 months ago . Could somebody tell the reasons why std::mutex is neither copyable nor movable? Somebody told me that it has some relationship to avoid resource waste. Why the copy constructor of std::mutex should be marked as deleted? If not, is there any potential problem? Its copy