C++ Logo

std-proposals

Advanced search

Re: Signals & Slots

From: Antoine Viallon <antoine_at_[hidden]>
Date: Tue, 27 Jul 2021 11:37:48 +0200
No, but this is really interesting.
I needed a clean way to handle signals.

And, for reference, new code bases don't have signal handling code. And I really think POSIX signal handling helpers in the STL would make everybody's life easier.

Antoine Viallon


-------- Courriel d’origine --------
De : Edward Catmur via Std-Proposals <std-proposals_at_[hidden]>
Envoyé : 26 juillet 2021 22:44:35 GMT+02:00
À : std-proposals <std-proposals_at_[hidden]>
Cc : Edward Catmur <ecatmur_at_[hidden]>
Objet : Re: [std-proposals] Signals & Slots

On Mon, 26 Jul 2021, 21:32 Thiago Macieira via Std-Proposals, <
std-proposals_at_[hidden]> wrote:

> On Monday, 26 July 2021 12:54:07 PDT Phil Bouchard wrote:
> > ... or to create some "process singleton" already emitting these
> converted
> > signals. On 7/26/21 3:51 PM, Phil Bouchard via Std-Proposals wrote:
> > One thing that could be done though is to provide a static conversion
> > function called explicitly that will convert these POSIX signals into the
> > new safer signal types. Just an idea...
>
> That is what I call "new use-cases".
>
> No, thanks. Whoever needs to deal with POSIX / Unix signals already has
> the
> code. I don't really care to make their lives easier.
>

Hopefully everyone is aware of asio signal_set?
https://www.boost.org/doc/libs/1_76_0/doc/html/boost_asio/overview/signals.html

Received on 2021-07-27 04:37:55