lesson_6 #6
|
@ -16,9 +16,9 @@ static std::mutex mtx_cout;
|
|||
class pcout
|
||||
{
|
||||
private:
|
||||
std::lock_guard<std::mutex> lk;
|
||||
std::lock_guard<std::mutex> lg;
|
||||
public:
|
||||
pcout() : lk(std::lock_guard<std::mutex>(mtx_cout))
|
||||
pcout() : lg(std::lock_guard<std::mutex>(mtx_cout))
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue