diff options
author | Christopher Faylor <me@cgf.cx> | 2004-12-22 21:12:30 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2004-12-22 21:12:30 +0300 |
commit | 63fcc6d48f520c75e179cc3c1599a6810cfd1943 (patch) | |
tree | ed535238cbe2dc07df52490dca1579f9d65408c6 /winsup/cygwin/cygthread.h | |
parent | 16bd231ec6cd293020e4538544f3bd6170f4c6d0 (diff) |
* cygheap.cc (cygheap_setup_for_child): Add api_fatal to catch failing
MapViewOfFileEx.
* cygthread.cc (cygthread::stub): Previous change to make diagnostic output
more informative was really a bust. Try again. Capture previous name in a new
field in cygthread for diagnostic purposes.
(cygthread::cygthread): Ditto.
(cygthread::release): Add an argument to control whether h should be cleared or
not.
(cygthread::terminate_thread): Use 'inuse' for tests rather than 'h'.
(cygthread): Add some diagnostic fields.
(cygthread::release): Add an argument.
* pinfo.cc (proc_waiter): Accommodate change to cygthread::release.
Diffstat (limited to 'winsup/cygwin/cygthread.h')
-rw-r--r-- | winsup/cygwin/cygthread.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/cygthread.h b/winsup/cygwin/cygthread.h index ae7ff9292..265e51ceb 100644 --- a/winsup/cygwin/cygthread.h +++ b/winsup/cygwin/cygthread.h @@ -18,6 +18,10 @@ class cygthread HANDLE thread_sync; void *stack_ptr; const char *__name; +#ifdef DEBUGGING + const char *__oldname; + bool terminated; +#endif LPTHREAD_START_ROUTINE func; VOID *arg; bool is_freerange; @@ -28,7 +32,7 @@ class cygthread static DWORD WINAPI simplestub (VOID *); static DWORD main_thread_id; static const char * name (DWORD = 0); - void release (); + void release (bool); cygthread (LPTHREAD_START_ROUTINE, LPVOID, const char *); cygthread () {}; static void init (); |