| 30 | using namespace std::chrono_literals; |
| 31 | |
| 32 | TEST(Threading, Async) { |
| 33 | auto someInt = _new<std::atomic_int>(0); |
| 34 | AFutureSet<> f; |
| 35 | for (int i = 0; i < 100; ++i) { |
| 36 | f << async { |
| 37 | (*someInt) += 1; |
| 38 | }; |
| 39 | } |
| 40 | f.waitForAll(); |
| 41 | |
| 42 | ASSERT_EQ(*someInt, 100); |
| 43 | } |
| 44 | |
| 45 | TEST(Threading, SleepInterruption) { |
| 46 | bool called = false; |
nothing calls this directly
no test coverage detected