From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 19FFA3858C55; Tue, 20 Sep 2022 14:54:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 19FFA3858C55 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663685693; bh=BMP2q3T5hsdHUckS8x0xdNXy9O6+leaN1DDe8ToUkqI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=mX0pdxura6rcDw38P8gcWfO1zRFp1HpeyFkzTPbAGbhpPtSDUlGCeErfL9WqRm0Fz hBG9h2D7L4ekPFrg7SJyuq+TN6WdnhC9oCbPRk5PjVS6gdCZPQd+OAPiObVRaLev2w +KAi39K+t90YxvqsrGk7MOKzZh2dbqFhZUuf0lJY= From: "valera.mironow at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/106772] atomic::wait shouldn't touch waiter pool if used platform wait Date: Tue, 20 Sep 2022 14:54:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: valera.mironow at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106772 --- Comment #12 from Mkkt Bkkt --- First of, I was a toxic, sorry. But you start this first, maybe it's allowed for maintainer, I don't know. But I still waiting code of benchmarks. Also I want to see example of usage when we notify atomic, that in non-deterministic wait state. And we cannot make this optimization outside = of libstdc++. Because honestly I don't understand purpose of this optimization except benchmarks like ``` atomic x; while(...) { x.notify_one(); } ```=