summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/timer.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-10-17 23:27:00 +0000
committerChristopher Faylor <me@cgf.cx>2005-10-17 23:27:00 +0000
commit267e201dae394e2d5deaa00fc2d4904a311210d8 (patch)
tree987ed376cf4af33ebd83038e81ed295158f5f671 /winsup/cygwin/timer.cc
parent8b00a766ff6986a76a794e3b21539023910dacd3 (diff)
downloadcygnal-267e201dae394e2d5deaa00fc2d4904a311210d8.tar.gz
cygnal-267e201dae394e2d5deaa00fc2d4904a311210d8.tar.bz2
cygnal-267e201dae394e2d5deaa00fc2d4904a311210d8.zip
Change process_lock to lock_process throughout. Change all calls to new
cygthread to handle extra argument, throughout. * cygthread.h (cygthread::callproc): Declare new method. (cygthread::cygthread): Add optional length argument to allow copying arguments to executing thread. * cygthread.cc (cygthread::callproc): Define new method. (cygthread::stub): Use callfunc to invoke thread func to allow potentially allocating stack memory which will be returned. (cygthread::simplestub): Ditto. (cygthread::cygthread): Accept arglen argument. Reset ev here prior to activating thread. Wait for ev after activating thread if we're copying contents to the thread. Wait until the end before setting h, to allow thread synchronization. (cygthread::release): Don't reset ev here. Rely on that happening the next time the thread is activated. * pinfo.h (commune_process): Rename declaration from _pinfo::commune_process. * pinfo.cc (commune_process): Ditto for definition. Modify slightly to allow running as a separate cygthread. * sigproc.cc (child_info::sync): Always wait for both subproc_ready and any hProcess if we have a cygwin parent. (talktome): Change argument to be a pointer to siginfo_t. Contiguously allocate whole siginfo_t structure + any needed extra for eventual passing to commune_process thread. (wait_sig): Accommodate change in talktome argument. * pipe.cc (fhandler_pipe::fixup_after_exec): Remove debugging.
Diffstat (limited to 'winsup/cygwin/timer.cc')
-rw-r--r--winsup/cygwin/timer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/timer.cc b/winsup/cygwin/timer.cc
index 552e56f6e..c6dc2754b 100644
--- a/winsup/cygwin/timer.cc
+++ b/winsup/cygwin/timer.cc
@@ -245,7 +245,7 @@ timer_tracker::settime (int in_flags, const itimerspec *value, itimerspec *ovalu
syncthread = CreateEvent (&sec_none_nih, TRUE, FALSE, NULL);
else
ResetEvent (syncthread);
- new cygthread (timer_thread, this, "itimer", syncthread);
+ new cygthread (timer_thread, 0, this, "itimer", syncthread);
}
return 0;