C++ Logo


Advanced search

Re: [std-proposals] Fwd: set_new_handler extension

From: Thiago Macieira <thiago_at_[hidden]>
Date: Wed, 31 May 2023 20:45:33 -0700
On Wednesday, 31 May 2023 19:55:38 PDT Phil Bouchard wrote:
> > You didn't address my point, that this simple solution required a mutex
> > and
> > reasoning what the critical section span should be. How is this any
> > different, let alone safer, from what we already have?
> My reasoning is:
> - This brings parallel programming to a higher level of abstraction (the
> definition of intelligence actually);
> - It prevents the whole planet from reinventing the wheel;
> - This *removes* race conditions, it can't add any runtime bugs in any way.

How? It's no different than using a mutex, because it is using a mutex. So if
it is not different, how is it better?

Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DCAI Cloud Engineering

Received on 2023-06-01 03:45:35