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:
Diffstat (limited to 'winsup/cygwin/thread.cc')
-rw-r--r--winsup/cygwin/thread.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc
index a521773d8..60a6d3a77 100644
--- a/winsup/cygwin/thread.cc
+++ b/winsup/cygwin/thread.cc
@@ -1044,7 +1044,9 @@ pthread::pop_all_cleanup_handlers ()
void
pthread::cancel_self ()
{
- exit (PTHREAD_CANCELED);
+ /* Can someone explain why the pthread:: is needed here? g++ complains
+ without it. */
+ pthread::exit (PTHREAD_CANCELED);
}
DWORD