* 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.
This commit is contained in:
Christopher Faylor
2010-07-30 18:04:22 +00:00
parent 5a7e00a866
commit 4db1bd4040
4 changed files with 46 additions and 24 deletions

View File

@@ -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 ();