Fixed concurrent tests

git-svn-id: svn://db.shs.com.ru/pip@892 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
5 changed files with 15 additions and 34 deletions

View File

@@ -1,7 +1,3 @@
//
// Created by fomenko on 24.09.2019.
//
#include "gtest/gtest.h"
#include "piconditionvar.h"
#include "pithread.h"
@@ -14,10 +10,8 @@ public:
protected:
void SetUp() override {
isRunning = false;
variable = new PIConditionVariable();
adapterFunctionDefault = [&](){
isRunning = true;
m.lock();
variable->wait(m);
m.unlock();