diff options
Diffstat (limited to 'winsup/cygwin/cygthread.h')
-rw-r--r-- | winsup/cygwin/cygthread.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/winsup/cygwin/cygthread.h b/winsup/cygwin/cygthread.h index b55aec90c..5ea74b38f 100644 --- a/winsup/cygwin/cygthread.h +++ b/winsup/cygwin/cygthread.h @@ -34,6 +34,13 @@ class cygthread static void * freerange (); void exit_thread (); static void terminate (); + bool SetThreadPriority (int nPriority) {return ::SetThreadPriority (h, nPriority);} + void zap_h () + { + (void) CloseHandle (h); + h = NULL; + } + }; #define cygself NULL |