This is the mail archive of the
cygwin-cvs@cygwin.com
mailing list for the Cygwin project.
src/winsup/cygwin ChangeLog cygtls.cc cygtls.h ...
- From: cgf at cygwin dot com
- To: cygwin-cvs at cygwin dot com
- Date: 13 Jan 2004 05:13:24 -0000
- Subject: src/winsup/cygwin ChangeLog cygtls.cc cygtls.h ...
CVSROOT: /cvs/src
Module name: src
Branch: cgf-deleteme
Changes by: cgf@sourceware.org 2004-01-13 05:13:24
Modified files:
winsup/cygwin : ChangeLog cygtls.cc cygtls.h dcrt0.cc dtable.cc
dtable.h exceptions.cc init.cc sync.cc sync.h
Log message:
* cygtls.cc (_threadinfo::init_thread): Correct thinko which caused thread list
to be allocated every time.
* cygtls.h (CYGTLS_PADSIZE): Define as const int.
* sync.h: Make multiple inclusion safe.
(muto::next): Eliminate.
(muto::exiting_thread): New variable.
(muto::set_exiting_thread): New function.
(new_muto): Change to use different section for mutos since c++ give
inexplicable warning in some cases otherwise.
(new_muto1): Ditto.
* dcrt0.cc (do_exit): Call muto::set_exiting_thread here.
* sync.cc (muto_start): Eliminate.
(muto::acquire): Always give exiting thread a lock. Never give thread a lock
if exiting.
(muto::release): Ditto for releasing.
* dtable.cc (dtable::init_lock): Unline function and define here.
* dtable.h (lock_cs): Define as a muto since critical sections seem to work
oddly on Windows Me.
(lock): Accommodate switch to muto.
(unlock): Ditto.
* exceptions.cc (setup_handler): Don't worry about acquiring mutos since that
hasn't mattered for a long time.
(signal_exit): Ditto: muto stuff will be handled automatically on exit now.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.2260.2.2&r2=1.2260.2.3
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/cygtls.cc.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.1.2.2&r2=1.1.2.3
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/cygtls.h.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.9.2.2&r2=1.9.2.3
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/dcrt0.cc.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.202.2.2&r2=1.202.2.3
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/dtable.cc.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.131.2.1&r2=1.131.2.2
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/dtable.h.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.25.2.2&r2=1.25.2.3
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/exceptions.cc.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.192.2.2&r2=1.192.2.3
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/init.cc.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.26.2.2&r2=1.26.2.3
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/sync.cc.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.23.8.1&r2=1.23.8.2
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/sync.h.diff?cvsroot=src&only_with_tag=cgf-deleteme&r1=1.22.8.1&r2=1.22.8.2