Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified)) by mollari.NetBSD.org (Postfix) with ESMTPS id 8F2251A921F for ; Fri, 9 Oct 2020 17:36:18 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 081B284D8C; Fri, 9 Oct 2020 17:36:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 7D0FA84D8A for ; Fri, 9 Oct 2020 17:36:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id kCNAG8Nv7Lds for ; Fri, 9 Oct 2020 17:36:17 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 16C9684D3C for ; Fri, 9 Oct 2020 17:36:17 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 092E3FB28; Fri, 9 Oct 2020 17:36:17 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Fri, 9 Oct 2020 17:36:17 +0000 From: "Taylor R Campbell" Subject: CVS commit: src/lib/libc/atomic To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20201009173617.092E3FB28@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Taylor R Campbell" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: riastradh Date: Fri Oct 9 17:36:16 UTC 2020 Modified Files: src/lib/libc/atomic: membar_ops.3 Log Message: Reword advice about when not to use membar_exit. With help from skrll and pgoyette. While here, change the example so it doesn't violate the advice just given. Still not a great example -- abusing UINT_MAX for a reference count is kinda sketchy, but it'll serve for now. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/lib/libc/atomic/membar_ops.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.