I know about std::this_thread::get_id()
, and about std::thread::native_handle()
. But - the latter is a method of std::thread
, while the former get's you an ID - and you can't construct an std::thread
from an std::thread::id
.
So - how can I otherwise "combine" these two and get the current thread's native handle, a-l-a pthread_self()
?
Aucun commentaire:
Enregistrer un commentaire