cplusplus / cplusplus/draft

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

Open
#3,067 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

lwg
Dominant language
TeX
Stars
221
Forks
813
Avg merge
16h 4m
Merged PRs (30d)
36

Description

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."

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Search the draft for the [coroutine.handle.resumption] clause and read the surrounding wording. Update the description so it refers to a thread started by std::thread rather than an instance of std::thread, while preserving the reference to the thread that executes main. Done means the clause no longer describes an object as an execution agent.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.