diff options
author | Christopher Faylor <me@cgf.cx> | 2010-07-30 22:04:22 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2010-07-30 22:04:22 +0400 |
commit | 4db1bd4040e1f12df5a4432ee228af9f5d2a084a (patch) | |
tree | 10e36b1da57d77e705b4fcbf0ff77bc7512150c9 /winsup/cygwin/cygthread.cc | |
parent | 5a7e00a86655de00cf65577e5d2e357c54e4ed37 (diff) |
* cygthread.h (LPVOID_THREAD_START_ROUTINE): Define.
(cygthread::create): Rename from cygthread::cygthread.
(cygthread::cygthread): Define new constructor which accepts
LPVOID_THREAD_START_ROUTINE as the first argument. Call cygthread::create.
* cygthread.cc (cygthread::create): Rename from cygthread::cygthread. Use
'arglen' rather than 'n' since 'n' is no longer supplied.
* fhandler_tty.cc (process_input): Define as void/noreturn.
(process_output): Ditto.
(process_ioctl): Ditto.
(fhandler_tty_master::init): Don't "zap_h" cygthreads which are noreturn. It's
now implied.
Diffstat (limited to 'winsup/cygwin/cygthread.cc')
-rw-r--r-- | winsup/cygwin/cygthread.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/winsup/cygwin/cygthread.cc b/winsup/cygwin/cygthread.cc index e747a2d87..7e8083ac8 100644 --- a/winsup/cygwin/cygthread.cc +++ b/winsup/cygwin/cygthread.cc @@ -185,9 +185,8 @@ out: return info; } -cygthread::cygthread (LPTHREAD_START_ROUTINE start, size_t n, void *param, - const char *name, HANDLE notify) - : __name (name), func (start), arglen (n), arg (param), notify_detached (notify) +void +cygthread::create () { thread_printf ("name %s, id %p", name, id); HANDLE htobe; @@ -214,7 +213,7 @@ cygthread::cygthread (LPTHREAD_START_ROUTINE start, size_t n, void *param, #endif } - if (n) + if (arglen) { while (!ev) yield (); |