public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/aoliva/heads/testme)] [libstdc++] Use __gthread_join in jthread/95989
@ 2023-02-16 11:12 Alexandre Oliva
  0 siblings, 0 replies; only message in thread
From: Alexandre Oliva @ 2023-02-16 11:12 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:f41840b0354ccffdf31e60080f49c9f5bcc6dc77

commit f41840b0354ccffdf31e60080f49c9f5bcc6dc77
Author: Alexandre Oliva <oliva@adacore.com>
Date:   Thu Feb 16 05:54:44 2023 -0300

    [libstdc++] Use __gthread_join in jthread/95989
    
    Bernd Edlinger <bernd.edlinger@hotmail.de> reported that the 95989.cc
    test fails without pthread_join at the end of main, but pthread_join
    is no good for a test that doesn't require pthreads.
    
    This patch adds a __gthread_join call instead.
    
    
    for  libstdc++-v3/ChangeLog
    
            * testsuite/30_threads/jthread/95989.cc (main): Call
            __gthread_join at the end.

Diff:
---
 libstdc++-v3/testsuite/30_threads/jthread/95989.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libstdc++-v3/testsuite/30_threads/jthread/95989.cc b/libstdc++-v3/testsuite/30_threads/jthread/95989.cc
index e98836d0945..407b5274843 100644
--- a/libstdc++-v3/testsuite/30_threads/jthread/95989.cc
+++ b/libstdc++-v3/testsuite/30_threads/jthread/95989.cc
@@ -52,4 +52,5 @@ main()
   test01();
   test02();
   test03();
+  __gthread_join(0, NULL);
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-16 11:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-16 11:12 [gcc(refs/users/aoliva/heads/testme)] [libstdc++] Use __gthread_join in jthread/95989 Alexandre Oliva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).