Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Geisert <mark@maxrnd.com>2018-01-24 11:34:23 +0300
committerCorinna Vinschen <corinna@vinschen.de>2018-01-24 12:57:12 +0300
commit29af5b27cf6a5222670ca910102e0f25406691ad (patch)
tree4950b078e145eb180cb1e41113ed99a3dd3a9e35 /winsup/cygwin/strace.cc
parentc17b0f00820c6c5187944800b6b4c3b83fe71293 (diff)
Define internal function mythreadname() -- revised
This new function returns the name of the calling thread; works for both cygthreads and pthreads. All calls to cygthread::name(/*void*/) replaced by calls to mythreadname(/*void*/).
Diffstat (limited to 'winsup/cygwin/strace.cc')
-rw-r--r--winsup/cygwin/strace.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/strace.cc b/winsup/cygwin/strace.cc
index 1e7ab047d..b95b436aa 100644
--- a/winsup/cygwin/strace.cc
+++ b/winsup/cygwin/strace.cc
@@ -138,7 +138,7 @@ strace::vsprntf (char *buf, const char *func, const char *infmt, va_list ap)
char fmt[80];
static NO_COPY bool nonewline = false;
DWORD err = GetLastError ();
- const char *tn = cygthread::name ();
+ const char *tn = mythreadname ();
int microsec = microseconds ();
lmicrosec = microsec;