Skip to content

[coroutine.handle.resumption] "an instance of std::thread" is not an execution agent #3067

@jwakely

Description

@jwakely

The wording (pre-Cologne) says:

has implementation-defined behavior unless each execution agent is either an instance of std::thread or the thread that executes main.

This is a category error. An instance of std::thread is an object with class type, not an execution agent.

I think it wants to say "unless each execution agent is a thread started by std::thread, or the thread that executes main."

Metadata

Metadata

Assignees

No one assigned

    Labels

    lwgIssue must be reviewed by LWG.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions