std::jthread::~jthread

Destroys the jthread object.

# Declarations

~jthread();

(since C++20)

# Notes

The request_stop() has no effect if the jthread was previously requested to stop.

A jthread object does not have an associated thread after

If join() throws an exception (e.g. because deadlock is detected), std::terminate() may be called.

# Example

This section is incompleteReason: no example

# See also