public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Jonathan Yong <jyong@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r13-3182] libgfortran: Use `__gthread_t` instead of `pthread_t`
Date: Mon, 10 Oct 2022 07:17:15 +0000 (GMT)	[thread overview]
Message-ID: <20221010071715.A37933858D37@sourceware.org> (raw)

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

commit r13-3182-gdecbb5bf7cc7317fefa53f0d64082cf020e85e42
Author: LIU Hao <lh_mouse@126.com>
Date:   Fri May 27 23:12:48 2022 +0800

    libgfortran: Use `__gthread_t` instead of `pthread_t`
    
    It used to cause errors if a thread model other than `posix` was selected,
    which looks like a leftover from a79878585a1c5e32bafbc6d1e73f91fd6e4293bf.
    
    libgfortran/
            * io/async.h (struct async_unit): Use `__gthread_t` instead
            of `pthread_t`.
    
    Signed-off-by: LIU Hao <lh_mouse@126.com>
    Signed-off-by: Jonathan Yong <10walls@gmail.com>

Diff:
---
 libgfortran/io/async.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libgfortran/io/async.h b/libgfortran/io/async.h
index efd542a45e8..d57722a95e4 100644
--- a/libgfortran/io/async.h
+++ b/libgfortran/io/async.h
@@ -351,7 +351,7 @@ typedef struct async_unit
   struct adv_cond work;
   struct adv_cond emptysignal;
   struct st_parameter_dt *pdt;
-  pthread_t thread;
+  __gthread_t thread;
   struct transfer_queue *head;
   struct transfer_queue *tail;

                 reply	other threads:[~2022-10-10  7:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221010071715.A37933858D37@sourceware.org \
    --to=jyong@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).