6 thread_function (void *thread_marker)
9 int my_value = *((int *)thread_marker);
14 counter++; // Break here in thread body.
15 std::this_thread::sleep_for(std::chrono::microseconds(10));
24 std::vector<std::thread> threads;
29 for (i = 0; i < 10; i++)
32 threads.push_back(std::thread(thread_function, &thread_value));
35 for (i = 0; i < 10; i++)