Saturday, February 16, 2019

Digest for comp.lang.c++@googlegroups.com - 5 updates in 2 topics

"Chris M. Thomasson" <invalid_chris_thomasson_invalid@invalid.com>: Feb 16 03:13PM -0800

On 2/13/2019 11:03 PM, Chris M. Thomasson wrote:
> around 34 seconds to complete. MSVC's std::shared_mutex takes around 127
> seconds. Wow! What a difference.
 
> Here is the code: Still have to try it out on GCC in c++17 mode.
[...]
 
Fwiw, I exposed this to the $#%# nest of reddit:
 
https://www.reddit.com/r/cpp/comments/are68n/experimental_readwrite_mutex/
 
Also, I edited my code to actually show the user what test they are
actually running!
 
https://www.reddit.com/r/cpp/comments/are68n/experimental_readwrite_mutex/
 
The only change is an addition of some "helpful" code is in main:
________________________
int main()
{
ct_shared shared;
 
std::cout << "Testing: ";
 
#if defined (CT_TEST_FAST_MUTEX)
std::cout << "Chris M. Thomasson's Experimental Read/Write Mutex\n\n";
#else
std::cout << "std::shared_mutex\n\n";

No comments: