* cygthread.cc (cygthread::create): Fix incorrect use of name rather than
__name. * cygthread.h (cygthread::cygthread): Create versions which eliminate 'n' parameter. * dcrt0.cc (dll_crt0_1): Remove check for threadfunc_ix. Remove obsolete comments. Set process_state to active here. * fhandler_netdrive.cc (create_thread_and_wait): Use shortened cygthread constructor. * timer.cc (timer_tracker::settime): Ditto. * window.cc (HWND): Ditto. * fhandler_tty.cc: Use shortened cygthread constructor, where appropriate, throughout. * select.cc: Ditto. * fork.cc (frok::child): Remove wait_for_sigthread. (fork): Reformat if for slightly better clarity. * init.cc (dll_finished_loading): New variable. (dll_entry): Use dll_finished_loading to determine when we should call merge_threadfunc. * sigproc.cc (no_signals_available): Simplify by using my_readsig. (wait_sig_inited): Delete. (wait_sig): Define as void function. (pending_signals): Accommodate change to wait_sig definition. (wait_for_sigthread): Delete definition. (sigproc_init): Initialize signal pipe here, before wait_sig thread is created. Use void form of cygthread creation. (init_sig_pipe): Delete. (wait_sig): Return void rather than DWORD. Assume previous initialization of signal pipe. Set my_sendsig to NULL when exiting. * sigproc.h (wait_for_sigthread): Delete declaration.
This commit is contained in:
@@ -635,7 +635,7 @@ start_thread_pipe (select_record *me, select_stuff *stuff)
|
||||
{
|
||||
pi->start = &stuff->start;
|
||||
pi->stop_thread = false;
|
||||
pi->thread = new cygthread (thread_pipe, 0, pi, "select_pipe");
|
||||
pi->thread = new cygthread (thread_pipe, pi, "select_pipe");
|
||||
me->h = *pi->thread;
|
||||
if (!me->h)
|
||||
return 0;
|
||||
@@ -1140,7 +1140,7 @@ start_thread_serial (select_record *me, select_stuff *stuff)
|
||||
select_serial_info *si = new select_serial_info;
|
||||
si->start = &stuff->start;
|
||||
si->stop_thread = false;
|
||||
si->thread = new cygthread (thread_serial, 0, si, "select_serial");
|
||||
si->thread = new cygthread (thread_serial, si, "select_serial");
|
||||
me->h = *si->thread;
|
||||
stuff->device_specific_serial = si;
|
||||
}
|
||||
@@ -1456,7 +1456,7 @@ start_thread_socket (select_record *me, select_stuff *stuff)
|
||||
stuff->device_specific_socket = si;
|
||||
si->start = &stuff->start;
|
||||
select_printf ("stuff_start %p", &stuff->start);
|
||||
si->thread = new cygthread (thread_socket, 0, si, "select_socket");
|
||||
si->thread = new cygthread (thread_socket, si, "select_socket");
|
||||
me->h = *si->thread;
|
||||
return 1;
|
||||
}
|
||||
@@ -1699,7 +1699,7 @@ start_thread_mailslot (select_record *me, select_stuff *stuff)
|
||||
select_mailslot_info *mi = new select_mailslot_info;
|
||||
mi->start = &stuff->start;
|
||||
mi->stop_thread = false;
|
||||
mi->thread = new cygthread (thread_mailslot, 0, mi, "select_mailslot");
|
||||
mi->thread = new cygthread (thread_mailslot, mi, "select_mailslot");
|
||||
me->h = *mi->thread;
|
||||
if (!me->h)
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user