| 50 | } |
| 51 | |
| 52 | TEST(std_executor, test) { |
| 53 | photon::Executor eth; |
| 54 | |
| 55 | for (int i = 0; i < 10; i++) { |
| 56 | ftask(ð, i); |
| 57 | } |
| 58 | EXPECT_LT(count.load(), 10); |
| 59 | printf("Task applied, wait for loop\n"); |
| 60 | while (count.load() != 10) { |
| 61 | std::this_thread::sleep_for(std::chrono::milliseconds(100)); |
| 62 | } |
| 63 | EXPECT_EQ(10, start.load()); |
| 64 | EXPECT_EQ(start.load(), count.load()); |
| 65 | } |
| 66 | |
| 67 | TEST(std_executor, perf) { |
| 68 | int cnt = 0; |
nothing calls this directly
no test coverage detected