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/sigproc.h')
-rw-r--r--winsup/cygwin/sigproc.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/winsup/cygwin/sigproc.h b/winsup/cygwin/sigproc.h
index e73e33aeb..c6ef13e24 100644
--- a/winsup/cygwin/sigproc.h
+++ b/winsup/cygwin/sigproc.h
@@ -83,6 +83,22 @@ int kill_pgrp (pid_t, siginfo_t&);
void __reg1 exit_thread (DWORD) __attribute__ ((noreturn));
void __reg1 setup_signal_exit (int);
+class no_thread_exit_protect
+{
+ static bool flag;
+ bool modify;
+public:
+ no_thread_exit_protect (int) {flag = true; modify = true;}
+ ~no_thread_exit_protect ()
+ {
+ if (modify)
+ flag = false;
+ }
+ no_thread_exit_protect () {modify = false;}
+ operator int () {return flag;}
+};
+
+
extern "C" void sigdelayed ();
extern char myself_nowait_dummy[];