P0206R0: Discussion about std::thread and RAII -- Ville Voutilainen

A new WG21 paper is available. If you are not a committee member, please use the comments section below or the std-proposals forum for public discussion.

Document number: P0206R0

Date: 2016-01-27

Discussion about std::thread and RAII

by Ville Voutilainen

Excerpt:

C++ continues not to provide a thread type that would join() automatically on scope exit. This causes exception-safety problems, because failing to join() in all code paths causes the destructor of a std::thread to terminate(). This paper explores various ways to solve the problem.

Add a Comment

Comments are closed.

Comments (0)

There are currently no comments on this entry.