什么相当于STL中的boost interprocess named_mutex

What is equivalent of boost interprocess named_mutex in STL

我有一个带有 boost named_mutex 的应用程序,用于锁定 C++ 项目 (Visual Studio) 中的多个模块。我需要不惜一切代价删除所有增强依赖项。

还有其他方法可以实现吗?如果可能在 STL 中 顺便说一句,我正在使用 C++11

有none.

您必须下拉到特定于平台的 API

等等

你可以看看Intel的tbb库。它速度非常快,旨在帮助并行执行。

https://www.threadingbuildingblocks.org/docs/help/reference/synchronization/mutexes.htm