Share via


thread::join Method

Blocks until the thread of execution that's associated with the calling object completes.

void join();

Remarks

If the call succeeds, subsequent calls to get_id for the calling object return a default thread::id that does not compare equal to the thread::id of any existing thread; if the call does not succeed, the value that's returned by get_id is unchanged.

Requirements

Header: thread

Namespace: std

See Also

Reference

thread Class

<thread>