thread::get_id Method

Returns a unique identifier for the associated thread.

id get_id() const _NOEXCEPT;

A thread::id object that uniquely identifies the associated thread, or thread::id() if no thread is associated with the object.

Header: thread

Namespace: std

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft