File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7979
8080 #gcc containers
8181 for gcc, container in gcc_cont_map.items():
82- containers.append({'container': container, 'module': gcc >= 14,
82+ containers.append({'container': container, 'module': gcc > 14,
8383 'jobname': f'Linux - GCC{gcc}'})
8484
8585
Original file line number Diff line number Diff line change 88#include < vector>
99#include < stdexcept>
1010#include < thread>
11- #include < functional>
1211
1312#if ISPTR_USE_MODULES
1413 import isptr;
@@ -196,7 +195,7 @@ TEST_CASE( "Atomic") {
196195 std::atomic<int > errors{0 };
197196
198197 for (int i = 0 ; i < N_THREADS; ++i) {
199- std::function< void ()> fn = [&shared, i, &errors]() {
198+ threads. emplace_back ( [&shared, i, &errors]{
200199 for (int j = 0 ; j < N_OPS; ++j) {
201200 if ((j & 1 ) == 0 ) {
202201 auto v = shared.load ();
@@ -205,8 +204,7 @@ TEST_CASE( "Atomic") {
205204 shared.store (make_refcnt<Foo>(i * N_OPS + j));
206205 }
207206 }
208- };
209- threads.emplace_back (fn);
207+ });
210208 }
211209 for (auto & t : threads) t.join ();
212210 CHECK (errors.load () == 0 );
You can’t perform that action at this time.
0 commit comments