Skip to content

[thread.jthread.class] suggests the thread joins itself #3157

Closed
@jwakely

Description

@jwakely

As I said at #3072 (review) I think this wording is unclear and inaccurate:

The functionality is the same as for class thread (32.4.2) with the additional ability to request that the thread stops and then joins the started thread.

The threads referred to as "the thread" and "the started thread" are actually the same thread, so this says "the ability to request that the thread stops and then joins itself" which is not what the class does.

I suggest:

The functionality is the same as for class thread (32.4.2) with the additional abilities to provide a stop_token (32.3) to the new thread of execution, make stop requests, and automatically join.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @jwakely@jensmaurer

    Issue actions

      [thread.jthread.class] suggests the thread joins itself · Issue #3157 · cplusplus/draft