blob: 0509b3d37a7ffff3ddbc963d30d5d12fe183aa4c [file] [log] [blame]
#include <chrono>
#include <thread>
void
thread_function ()
{
// Set thread-specific breakpoint here.
std::this_thread::sleep_for(std::chrono::microseconds(100));
}
int
main ()
{
// Set main breakpoint here.
#ifdef __APPLE__
pthread_setname_np("main-thread");
#endif
std::thread t(thread_function);
t.join();
thread_function();
return 0;
}