cplusplus / papers

ISO/IEC JTC1 SC22 WG21 paper scheduling and management
606 stars 19 forks source link

LWG 4075: Thread stability requirement on constructors and destructors #1981

Open jwakely opened 4 days ago

jwakely commented 4 days ago

LWG would like SG1 to review this issue and determine if there's really a problem here or not: https://cplusplus.github.io/LWG/issue4075

The issue doesn't give a concrete example of how/when/why this is a problem. If it is a problem, why would it only apply to constructors and destructors, and not all the other user functions called by the standard library?

Neither constructors nor destructors can be coroutines ([class.ctor.general]/7 and [class.dtor]/20). Fibers might introduce a problem, but we don't think P2300 does.