| 19 | constexpr int ids_per_thread = 10000; |
| 20 | |
| 21 | std::vector<int> generate_ids() |
| 22 | { |
| 23 | std::vector<int> ids; |
| 24 | ids.reserve(ids_per_thread); |
| 25 | for(int i=0; i!=ids_per_thread-1; ++i) |
| 26 | { |
| 27 | int id = leaf::detail::new_id(); |
| 28 | BOOST_TEST_NE(id&1, 0); |
| 29 | int last = leaf::detail::current_id(); |
| 30 | BOOST_TEST_EQ(last, leaf::detail::current_id()); |
| 31 | BOOST_TEST_NE(last&1, 0); |
| 32 | BOOST_TEST_EQ(last, id); |
| 33 | ids.push_back(id); |
| 34 | } |
| 35 | return ids; |
| 36 | } |
| 37 | |
| 38 | int main() |
| 39 | { |
no test coverage detected