Description
std::mutex is currently powered by ConcRT to support Windows XP. As a result the size of mutex is too big to fit in a cache line.
When XP support can be dropped, the size can be reduced to sizeof(void*) by changing mutex to be an SRWLOCK, which is the highest performance lock provided by Windows.
Semi-duplicate description
Additional context
See also: Developer Community DevCom-334696 and Microsoft-internal VSO-685103 / AB#685103.
vNext note: Resolving this issue will require breaking binary compatibility. We won't be able to accept pull requests for this issue until the vNext branch is available. See #169 for more information.
Description
std::mutex is currently powered by ConcRT to support Windows XP. As a result the size of mutex is too big to fit in a cache line.
When XP support can be dropped, the size can be reduced to sizeof(void*) by changing mutex to be an SRWLOCK, which is the highest performance lock provided by Windows.
Semi-duplicate description
<mutex>: Implementmutexandrecursive_mutexon SRW Lock. Support recursion only onrecursive_mutexconstexprconstruction)Additional context
See also: Developer Community DevCom-334696 and Microsoft-internal VSO-685103 / AB#685103.
vNext note: Resolving this issue will require breaking binary compatibility. We won't be able to accept pull requests for this issue until the vNext branch is available. See #169 for more information.