Template:cpp/thread/thread/joinable

Checks if the object identifies an active thread of execution. Specifically, returns if. So a default constructed is not joinable.

A thread that has finished executing code, but has not yet been joined is still considered an active thread of execution and is therefore joinable.

Parameters
(none)

Return value
if the object identifies an active thread of execution,  otherwise