我需要将boost :: thread :: id转换为变量,但这个变量不是字符串,也不允许字符串操作.那可能吗?
也许是这样的
char *tid = (casting something) boost::this_thread::get_id()
这是unix系统上的c ++.避免使用字符串操作的原因是因为它降低了整个应用程序的速度.谢谢你.
c++ unix multithreading boost
boost ×1
c++ ×1
multithreading ×1
unix ×1