public inbox for cygwin-cvs@sourceware.org help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org> To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: select: always store the running thread's TLS into select_record Date: Mon, 14 Jan 2019 16:19:00 -0000 [thread overview] Message-ID: <20190114161945.114441.qmail@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=752151e715f5b20e6380e137ec4c884617372372 commit 752151e715f5b20e6380e137ec4c884617372372 Author: Corinna Vinschen <corinna@vinschen.de> Date: Mon Jan 14 17:03:39 2019 +0100 Cygwin: select: always store the running thread's TLS into select_record This allows select threads to access our current tls if required. Signed-off-by: Corinna Vinschen <corinna@vinschen.de> Diff: --- winsup/cygwin/select.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/select.h b/winsup/cygwin/select.h index 1db8ad5..9a737c3 100644 --- a/winsup/cygwin/select.h +++ b/winsup/cygwin/select.h @@ -14,6 +14,7 @@ struct select_record int fd; HANDLE h; fhandler_base *fh; + _cygtls *tls; int thread_errno; bool windows_handle; bool read_ready, write_ready, except_ready; @@ -27,7 +28,8 @@ struct select_record void set_select_errno () {__seterrno (); thread_errno = errno;} int saw_error () {return thread_errno;} select_record (int): next (NULL) {} - select_record (): fd (0), h (NULL), fh (NULL), thread_errno (0), + select_record () : + fd (0), h (NULL), fh (NULL), tls (&_my_tls), thread_errno (0), windows_handle (false), read_ready (false), write_ready (false), except_ready (false), read_selected (false), write_selected (false), except_selected (false), except_on_write (false),
reply other threads:[~2019-01-14 16:19 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=20190114161945.114441.qmail@sourceware.org \ --to=corinna@sourceware.org \ --cc=cygwin-cvs@sourceware.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: linkBe 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).