* 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:
@@ -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 ();
|
||||
|
Reference in New Issue
Block a user