This is the mail archive of the
cygwin-cvs@cygwin.com
mailing list for the Cygwin project.
winsup/cygwin ChangeLog Makefile.in cygthread. ...
- From: cgf at cygwin dot com
- To: cygwin-cvs at cygwin dot com
- Date: 27 Mar 2005 01:57:39 -0000
- Subject: winsup/cygwin ChangeLog Makefile.in cygthread. ...
CVSROOT: /cvs/uberbaum
Module name: winsup
Changes by: cgf@sourceware.org 2005-03-27 01:57:39
Modified files:
cygwin : ChangeLog Makefile.in cygthread.cc cygthread.h
cygtls.cc cygwin.din debug.cc exceptions.cc
external.cc fhandler_clipboard.cc
fhandler_mem.cc fhandler_raw.cc
fhandler_serial.cc fhandler_tape.cc
fhandler_termios.cc fhandler_windows.cc
security.cc sync.cc timer.cc window.cc
wininfo.h winsup.h
cygwin/include/cygwin: version.h
Added files:
cygwin : lsearch.cc
cygwin/include : search.h
Log message:
* wininfo.h (wininfo::timer_active): Delete.
(wininfo::itv): Ditto.
(wininfo::start_time): Ditto.
(wininfo::window_started): Ditto.
(wininfo::getitimer): Ditto.
(wininfo::setitimer): Ditto.
(wininfo::wininfo): Ditto.
(wininfo::lock): New method.
(wininfo::release): Ditto.
* window.cc: Use new lock/acquire wininfo methods throughout.
(wininfo::wininfo): Delete
(wininfo::getitimer): Ditto.
(wininfo::setitimer): Ditto.
(getitimer): Ditto.
(setitimer): Ditto.
(ualarm): Ditto.
(alarm): Ditto.
(wininfo::lock): Define new function.
(wininfo::release): Ditto.
(wininfo::process): Delete WM_TIMER handling.
* timer.cc (struct timetracker): Delete it, flags. Add it_interval,
interval_us, sleepto_us, running, init_muto(), syncthread, and gettime().
(ttstart): Make NO_COPY.
(lock_timer_tracker): New class.
(timer_tracker::timer_tracker): Distinguish ttstart case.
(timer_tracker::~timer_tracker): New destructor. Clean out events, and reset
magic.
(timer_tracker::init_muto): New method.
(to_us): Round up as per POSIX.
(timer_thread): Reorganize to match timer_tracker::settime and
timer_tracker::gettime. Call sig_send without wait. Call auto_release.
(timer_tracker::settime): Reorganize logic to avoid race. Call gettime to
recover old value.
(timer_tracker::gettime): New method.
(timer_create): Properly set errno on invalid timerid. Use new
lock_timer_tracker method.
(timer_delete): Ditto. Simplify code slightly.
(timer_gettime): New function.
(fixup_timers_after_fork): Reinit ttstart.
(getitimer): New implementation.
(setitimer): Ditto.
(ualarm): Ditto.
(alarm): Ditto.
* cygwin.din: Export timer_gettime.
* winsup.h: Remove has has_visible_window_station declaration.
* Makefile.in (DLL_OFILES): Add lsearch.o.
* cygthread.h (cygthread::notify_detached): New element.
(cygthread::cygthread): Take optional fourth argument signifying event to
signal on thread completion.
* cygthread.cc (cygthread::stub): Signal notify_detached event, if it exists.
(cygthread::cygthread): Initialize notify_detached from fourth argument.
(cygthread::detach): Wait for notify_detached field is present.
* lsearch.cc: New file.
* search.h: Ditto.
* include/cygwin/version.h: Bump API minor number to 126.
* cygwin.din: Export lsearch, lfind.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/lsearch.cc.diff?cvsroot=uberbaum&r1=NONE&r2=1.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/ChangeLog.diff?cvsroot=uberbaum&r1=1.2792&r2=1.2793
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/Makefile.in.diff?cvsroot=uberbaum&r1=1.168&r2=1.169
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/cygthread.cc.diff?cvsroot=uberbaum&r1=1.61&r2=1.62
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/cygthread.h.diff?cvsroot=uberbaum&r1=1.29&r2=1.30
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/cygtls.cc.diff?cvsroot=uberbaum&r1=1.24&r2=1.25
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/cygwin.din.diff?cvsroot=uberbaum&r1=1.131&r2=1.132
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/debug.cc.diff?cvsroot=uberbaum&r1=1.51&r2=1.52
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/exceptions.cc.diff?cvsroot=uberbaum&r1=1.225&r2=1.226
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/external.cc.diff?cvsroot=uberbaum&r1=1.69&r2=1.70
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/fhandler_clipboard.cc.diff?cvsroot=uberbaum&r1=1.28&r2=1.29
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/fhandler_mem.cc.diff?cvsroot=uberbaum&r1=1.42&r2=1.43
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/fhandler_raw.cc.diff?cvsroot=uberbaum&r1=1.52&r2=1.53
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/fhandler_serial.cc.diff?cvsroot=uberbaum&r1=1.54&r2=1.55
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/fhandler_tape.cc.diff?cvsroot=uberbaum&r1=1.54&r2=1.55
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/fhandler_termios.cc.diff?cvsroot=uberbaum&r1=1.60&r2=1.61
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/fhandler_windows.cc.diff?cvsroot=uberbaum&r1=1.26&r2=1.27
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/security.cc.diff?cvsroot=uberbaum&r1=1.179&r2=1.180
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/sync.cc.diff?cvsroot=uberbaum&r1=1.33&r2=1.34
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/timer.cc.diff?cvsroot=uberbaum&r1=1.7&r2=1.8
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/window.cc.diff?cvsroot=uberbaum&r1=1.34&r2=1.35
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/wininfo.h.diff?cvsroot=uberbaum&r1=1.1&r2=1.2
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/winsup.h.diff?cvsroot=uberbaum&r1=1.154&r2=1.155
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/include/search.h.diff?cvsroot=uberbaum&r1=NONE&r2=1.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/include/cygwin/version.h.diff?cvsroot=uberbaum&r1=1.183&r2=1.184