std::this_thread::get_id

From Cppreference

Jump to: navigation, search
Defined in header <thread>

std::thread::id get_id();
(C++11 feature)

Returns the id of the current thread.

Contents

[edit] Parameters

(none)

[edit] Return value

id if the current thread.

[edit] Example

[edit] See also

get_id
returns the id of the thread
(public member function of std::thread)