On Mon, 2019-07-08 at 14:41 +0100, Jonathan Wakely wrote: > On Mon, 8 Jul 2019 at 13:19, Oleg Endo <oleg.endo@xxxxxxxxxxx> wrote: > > > > Even with single-threaded programs there could be async signal > > handlers.... and on MCU/baremetal targets we've got interrupt > > handlers, > > which are conceptually the same. I'd expect shared_ptr to just > > work > > there, too. > > What do you base that expectation on? Only accesses to > std::sig_atomic_t variables are safe in signal handlers. Oops, missed that one. Thanks! Cheers, Oleg