Skip to content

Support for std::thread and std::this_thread #25569

@cfriedt

Description

@cfriedt

Is your enhancement proposal related to a problem? Please describe.
It would be nice for C++ applications to be able to use std::thread and std::this_thread.

Describe the solution you'd like
To be able to use use std::thread and std::this_thread. I can make a PR.

Describe alternatives you've considered
I recently created a PR to provide a sample for and to document the socketpair API (#25528) and was able to get threading working with a couple of defines and implementing std::thread::join().

I also needed nanosleep(2) for std::this_thread::sleep_for()

However, in #25528 it was only partial support for std::thread. There are a couple of additional modes that will need testing. I thought it better to make a separate PR to address C++ threading as a whole.

Additional context

See also

Metadata

Metadata

Assignees

Labels

EnhancementChanges/Updates/Additions to existing featuresarea: C++

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions