From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9C6FF3882012; Mon, 19 Jun 2023 21:21:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9C6FF3882012 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1687209660; bh=bJ8KrVq2u1Gwff5hiwLbuW/5ZVuzRgFbOHHSWBk+28Q=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Fd41c3M5QQ/M3PENiTPTUtJb/J0ZgNAnmtDoT+MC0XoO4tLYXbNfO3PVpD9yhQgBT ZZNtg4w7Fowo95J7RZNYhWh4FvahF2JvajIQsu6DENIllFPLZU4XbQrckHkMdX51E9 SDgUo2JFZvCILlHV/wj4UmfoHuigAsxhfjX0MFGQ= From: "adhemerval.zanella at linaro dot org" To: glibc-bugs@sourceware.org Subject: [Bug libc/30558] SIGEV_THREAD is badly implemented Date: Mon, 19 Jun 2023 21:21:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.37 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: adhemerval.zanella at linaro dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30558 --- Comment #14 from Adhemerval Zanella --- (In reply to Adhemerval Zanella from comment #13) > But POSIX explicitly states that the thread is *not* joinable ("In neither > case is it valid to call pthread_join()"), and as I said it makes even > tricker to handle the per-timer thread (what happens to the timer after t= he > thread is joined? Should pthread_join issue timer_delete? What happens if > there thread if cancelled or issue pthread_exit?). >=20 > [1] https://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.= html > [2] > https://pubs.opengroup.org/onlinepubs/9699919799/functions/timer_settime.= html In fact, from the Austin issue [1] the next POSIX 2018 defined that providi= ng a pthread_attr_t with joinable state is undefined-behavior [2]; so I am even = more inclined to *not* move to make it implementation-defined. [1] https://austingroupbugs.net/view.php?id=3D633#c5937 [2] https://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.ht= ml --=20 You are receiving this mail because: You are on the CC list for the bug.=