220 26893 <4CABB19C-4655-4153-8483-53E844AF1D1F@gmail.com> article
Path: news.gmane.org!not-for-mail
From: Howard Hinnant <howard.hinnant@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: std::lock and std::lock_guard for
 SharedLockable's lock_shared
Date: Wed, 13 Jul 2016 10:43:50 -0400
Lines: 69
Approved: news@gmane.org
Message-ID: <4CABB19C-4655-4153-8483-53E844AF1D1F@gmail.com>
References: <8d4cc002-f0f2-465f-b856-841adc1ecffd@isocpp.org> <2DCF8C2C-C662-49EE-B7E5-3FA11B47AB58@gmail.com> <cd6a8704-4358-4698-85ba-05dd65396190@isocpp.org> <5785FAB2.2000203@gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
Content-Type: multipart/signed; boundary="Apple-Mail=_11BD1763-8D98-4AFD-9E27-709229C0BC6D"; protocol="application/pgp-signature"; micalg=pgp-sha256
X-Trace: ger.gmane.org 1468421042 29000 80.91.229.3 (13 Jul 2016 14:44:02 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 13 Jul 2016 14:44:02 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCK2HM4L6YERBKNHTG6AKGQENP6VICQ@isocpp.org Wed Jul 13 16:43:55 2016
Return-path: <std-proposals+bncBCK2HM4L6YERBKNHTG6AKGQENP6VICQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qk0-f198.google.com ([209.85.220.198])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCK2HM4L6YERBKNHTG6AKGQENP6VICQ@isocpp.org>)
	id 1bNLOF-0002fY-4a
	for gclcip-std-proposals@m.gmane.org; Wed, 13 Jul 2016 16:43:55 +0200
Original-Received: by mail-qk0-f198.google.com with SMTP id a123sf101826832qkd.2
        for <gclcip-std-proposals@m.gmane.org>; Wed, 13 Jul 2016 07:43:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:subject:from:in-reply-to:date:message-id:references:to
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post
         :list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=GPVD9nCaawTYSQvS/WEJEad8B4EyZEMCzQJl9GlIDiU=;
        b=tM5lp32G3E9qqP3MfURMT6EwKhYEyV8M4KWOBCbKF9bMdE1+A+eUavztHHgBvDCrar
         lZSnFJFII+I6Btarsitjpd0wxpRoUE9vYggHXIdKLhstSczvEI8rUHy7JHmoza+qJG8L
         bhyOTi9PcbQDgTzYunkWdWjJ8ToqF/QpAd04Mf6pYWe3bJ3xXUPoqJ0OaFz88uI/akmh
         cwtnV13qs+jYm7sq1EMd0aGMfwfDng20xTag8u1BByh6X8xuQpH7NSLc6shOswLtU3Ep
         WY1sykE6z/QtY+hKE0APJl5p3y5xqjpe5aG9jHKdkwKbsdQ4fm1kMxbALxor0dalBzE6
         1oLg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:subject:from:in-reply-to:date
         :message-id:references:to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=GPVD9nCaawTYSQvS/WEJEad8B4EyZEMCzQJl9GlIDiU=;
        b=ZZNI/3YLLb4ViGMEsP3+i7//MpfdCvaETGt+efv5a4LNGQAq+5QrMHk+kmF5a3r40j
         cXc6tU6/SmboyKQzqAq0PlQEeKZaNoAPPHwev87EDcA7AdcGx6cM+XVwkhD1OEtQQJL9
         XEPI9uxsxt/uRNJLP8XrBvBcscg70r9mg6kprCzIKqaH6FZB4W/aL9+sv9qDCL/RUtVq
         +VSDp9HgiPS0U5m6z7helqpRcEr/lEo3OzSsPWBTTsluYnjbKReO4xbMmuJy94ZznZMk
         cV8a/Me7OiI2iyOSEzbIJRh4lhLuCik1yqbyGxYFXrmV58t7Z96Kb96RmQGM01N0MPmB
         w5kg==
X-Gm-Message-State: ALyK8tKi1TFGVKY1r+c4+PnnBTe8dbkHc8EcqysaYn4x6CqsK9esRmdL13+MeKrX3X93Wg==
X-Received: by 10.200.36.26 with SMTP id c26mr6600606qtc.15.1468421034149;
        Wed, 13 Jul 2016 07:43:54 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.36.90.19 with SMTP id v19ls994506ita.17.gmail; Wed, 13 Jul
 2016 07:43:53 -0700 (PDT)
X-Received: by 10.129.83.131 with SMTP id h125mr6556424ywb.298.1468421033039;
        Wed, 13 Jul 2016 07:43:53 -0700 (PDT)
Original-Received: from mail-qt0-x233.google.com (mail-qt0-x233.google.com. [2607:f8b0:400d:c0d::233])
        by mx.google.com with ESMTPS id u128si2024299qkc.250.2016.07.13.07.43.53
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 13 Jul 2016 07:43:53 -0700 (PDT)
Received-SPF: pass (google.com: domain of howard.hinnant@gmail.com designates 2607:f8b0:400d:c0d::233 as permitted sender) client-ip=2607:f8b0:400d:c0d::233;
Original-Received: by mail-qt0-x233.google.com with SMTP id j35so26816376qtj.2
        for <std-proposals@isocpp.org>; Wed, 13 Jul 2016 07:43:53 -0700 (PDT)
X-Received: by 10.200.46.122 with SMTP id s55mr12776206qta.80.1468421032706;
        Wed, 13 Jul 2016 07:43:52 -0700 (PDT)
Original-Received: from [10.0.1.2] (cpe-67-241-68-255.twcny.res.rr.com. [67.241.68.255])
        by smtp.gmail.com with ESMTPSA id 56sm1057427qtt.31.2016.07.13.07.43.51
        for <std-proposals@isocpp.org>
        (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
        Wed, 13 Jul 2016 07:43:51 -0700 (PDT)
X-Pgp-Agent: GPGMail
In-Reply-To: <5785FAB2.2000203@gmail.com>
X-Mailer: Apple Mail (2.3124)
X-Original-Sender: howard.hinnant@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com;       spf=pass (google.com: domain of
 howard.hinnant@gmail.com designates 2607:f8b0:400d:c0d::233 as permitted
 sender) smtp.mailfrom=howard.hinnant@gmail.com;       dmarc=pass (p=NONE
 dis=NONE) header.from=gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Spam-Checked-In-Group: std-proposals@isocpp.org
X-Google-Group-Id: 399137483710
List-Post: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:26893
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/26893>


--Apple-Mail=_11BD1763-8D98-4AFD-9E27-709229C0BC6D
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=UTF-8

On Jul 13, 2016, at 4:24 AM, Andrey Semashev <andrey.semashev@gmail.com> wr=
ote:
>=20
> As for the shared_lock_guard, I do think it is needed, even if not the va=
riadic version.

Just do this:

   using shared_lock_guard  =3D const std::shared_lock<std::shared_mutex>;

The standard should concentrate on supplying those things that are not triv=
ial for anyone to do themselves, or is needed in virtually every program.

On Jul 13, 2016, at 6:17 AM, 'Bernd L=C3=B6rwald' via ISO C++ Standard - Fu=
ture Proposals <std-proposals@isocpp.org> wrote:

>     std::lock (LockableOrSharedLockable1&, Policy1, =E2=80=A6);
>=20
> to be used as
>=20
>     std::lock (other.mutex_, std::lock_shared, mutex_, std::lock_exclusiv=
e);

I await the implementation and positive field experience.

Howard

--=20
You received this message because you are subscribed to the Google Groups "=
ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp=
..org/d/msgid/std-proposals/4CABB19C-4655-4153-8483-53E844AF1D1F%40gmail.com=
..

--Apple-Mail=_11BD1763-8D98-4AFD-9E27-709229C0BC6D
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCAAGBQJXhlOmAAoJEGbcHCxKqhWCubMP/RgrN/Ij7SOA9Ep/KZvh1lWo
9esNpsfqZqBjc7llaeye+CTGJi9r/WUa1hzsWX13DkQBEKOqw5DsqReP4unRXDg1
6eJFUStvZMb44s2ffWsQPoPc2fy3wEXrF8yDvbYMpwyO1vcCCty5Fw+IwgaP8q4w
wfpPMrBtZ37BjiTBkGR5dkqRdk4VCVv68WFA3HhWRK1m1CX3hdSAFPfJQuXCDMYy
LC717f1ExQKhoWn+6pRceMqO4ov7+WaNDBvTvNXwW943tXdMviqJaWFkgaaX78L+
/4sI64uaznh8e3FA4J6eRRQdhbSmysefDd6DFjsndQXEIhEcoeu4XKLQbAkHJDKa
GRMCZba5oTU2FyWjU9Xmv+ImGyzQ6O17wMumK4qzhWk2hf9stesNDFz0Fk/Zf2h8
HfNk31HneAnCKW7ZfjSD+70YCE/mjcd8ODvdIMOX1USSrmUziWnrTyRikLXv6wuJ
0gk39UhRlQBjeGt1wo4hIPDbmHncxnNVr6cyvMLNzi5tgKVVOSWwrbboVChJYUDA
qDEOcbTclc/5WR3SnjlF5mpsQxzAU/X7EMTsnTBF8yBOs4fL9nc1nJHMnmz+m9Ck
VzJtPWBzrdFyrQsBiH6LaADW8ZbC0cZOtTzGA8j0H5dWQGEQAkE8jNahQAvSb186
FrvPrOIIw6YdgcAZCdti
=fssk
-----END PGP SIGNATURE-----

--Apple-Mail=_11BD1763-8D98-4AFD-9E27-709229C0BC6D--

.
