C++ Logo


Advanced search

Re: [std-proposals] unique_lock<atomic_flag>

From: Thiago Macieira <thiago_at_[hidden]>
Date: Thu, 23 Feb 2023 08:25:00 -0800
On Thursday, 23 February 2023 00:39:16 PST Frederick Virchanza Gotham via Std-
Proposals wrote:
> Sometimes I want a mutex that can be unlocked by a thread other than
> the one that locked it. I'll give you an example.

That's usually called a "semaphore" not "mutex".

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

Received on 2023-02-23 16:25:03