Megosztás a következőn keresztül:


thread::get_id Method

Returns a unique identifier for the associated thread.

id get_id() const _NOEXCEPT;

Return Value

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

Requirements

Header: thread

Namespace: std

See Also

Reference

thread Class

<thread>