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:
authorChristopher Faylor <me@cgf.cx>2011-05-04 10:16:59 +0400
committerChristopher Faylor <me@cgf.cx>2011-05-04 10:16:59 +0400
commit9d2b7928b586d047f0c53ab3b2ecb26a45f36884 (patch)
treeb2daee46626d823f1130d3e60836d8d3b3caea0a /winsup/cygwin/thread.h
parentcdbb272b4c5c165e7e1105eef36ce0600c9ea9fb (diff)
* thread.h (pthread::static_cancel_self): Mark as noreturn.
(pthread::cancel_self): Ditto. * thread.cc (pthread::cancel_self): Explicitly use pthread::exit to avoid a "function returns" error.
Diffstat (limited to 'winsup/cygwin/thread.h')
-rw-r--r--winsup/cygwin/thread.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/thread.h b/winsup/cygwin/thread.h
index 37296e5e5..b1969ed81 100644
--- a/winsup/cygwin/thread.h
+++ b/winsup/cygwin/thread.h
@@ -401,7 +401,7 @@ public:
virtual void testcancel ();
static HANDLE get_cancel_event ();
- static void static_cancel_self ();
+ static void static_cancel_self () __attribute__ ((noreturn));
virtual int setcancelstate (int state, int *oldstate);
virtual int setcanceltype (int type, int *oldtype);
@@ -454,7 +454,7 @@ private:
void postcreate ();
bool create_cancel_event ();
static void set_tls_self_pointer (pthread *);
- void cancel_self ();
+ void cancel_self () __attribute__ ((noreturn));
DWORD get_thread_id ();
};