C++11读写公平实现
#include<iostream>#include<mutex>#include<condition_variable>#include<thread>#include<string>using namespace std;class semaphere{ public: semaphere(int n):m_count(n){} semaphere(c