linux c++ 打印ps看到的系统线程号
std::thread::id user_thread_id = std::this_thread::get_id();
pid_t system_thread_id = syscall(SYS_gettid);
std::stringstream ss;
ss << __FUNCTION__ << " user_thread_id: " << user_thread_id << std::endl;
ss << __FUNCTION__ << " system_thread_id: " << system_thread_id << std::endl;
std::cout << ss.str();