Skip to content
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.

Commit

Permalink
Test: downgrade from C++14 to 11
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Ivanov committed Sep 23, 2020
1 parent 428b4b6 commit 7c90d7a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions backend.native/tests/interop/concurrentTerminate/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <vector>
#include <csignal> // signal.h

using namespace std::chrono_literals; // since C++14
using namespace std;

static
Expand All @@ -18,10 +17,10 @@ int runConcurrent() {
for (size_t i = 0; i < 100; ++i) {
futures.emplace_back(std::async(std::launch::async,
[](auto delay) {
std::this_thread::sleep_for(delay);
std::this_thread::sleep_for(std::chrono::milliseconds(delay));
testlib_symbols()->kotlin.root.testTerminate();
},
100ms));
100));
}

for (auto &future : futures) future.get();
Expand Down

0 comments on commit 7c90d7a

Please sign in to comment.