C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Fwd: set_new_handler extension

From: Phil Bouchard <boost_at_[hidden]>
Date: Wed, 31 May 2023 23:46:37 -0400
On 5/31/23 23:45, Thiago Macieira wrote:
> 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?

Because it is abstracted thus done implicitly.


-- 
Logo <https://www.fornux.com/>  
*Phil Bouchard*  facebook icon
<https://www.linkedin.com/in/phil-bouchard-5723a910/> 
Founder & CEO
T: (819) 328-4743
E: phil_at_[hidden]| www.fornux.com <http://www.fornux.com>
8 rue de la Baie| Gatineau (Qc), J8T 3H3 Canada
Banner <https://goglobalawards.org/> Le message ci-dessus, ainsi que les
documents l'accompagnant, sont destinés uniquement aux personnes
identifiées et peuvent contenir des informations privilégiées,
confidentielles ou ne pouvant être divulguées. Si vous avez reçu ce
message par erreur, veuillez le détruire.
This communication (and/or the attachments) is intended for named
recipients only and may contain privileged or confidential information
which is not to be disclosed. If you received this communication by
mistake please destroy all copies.

Received on 2023-06-01 03:46:38