I am on C2D (Core 2 Duo Intel) and your code is working fine on my machine; all threads started and both core had used;
I make a little change; I renamed your class from "shared_mutex" to "shared_mutex1" and same for constructors and destructors.
I was getting redefination of that class. After changing name; every thing is working fine.
-Rahul
To create something exceptional
________________________________
-Master4Master
"Confidentiality Warning: This message and any attachments are intended only for the use of the intended recipient(s), are confidential, and may be privileged. If you are not the intended recipient, you are hereby notified that any review, re-transmission, conversion to hard copy, copying, circulation or other use of this message and any attachments is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email, and delete this message and any attachments from your system.
Virus Warning: Although I have taken reasonable precautions to ensure no viruses are present in this email, I cannot accept responsibility for any loss or damage arising from the use of this email or attachment."
Speak out for justice and peace,
even if your voice trembles.
________________________________
From: tomasz jankowski
uni(generator, uni_dist);
std::string key = "ello";std::cout<