CVSROOT:        /cvs/src
Module name:    src
Changes by:     [email protected]  2014-11-28 20:46:13

Modified files:
        winsup/cygwin  : ChangeLog cygheap.cc cygheap.h cygtls.cc 
                         exceptions.cc fhandler_termios.cc sigproc.cc 
                         thread.cc 

Log message:
        * cygheap.cc (init_cygheap::init_tls_list): Accommodate threadlist
        having a new type threadlist_t *.  Convert commented out code into an
        #if 0.  Create thread mutex.  Explain why.
        (init_cygheap::remove_tls): Drop timeout value.  Always wait infinitely
        for tls_sentry.  Return mutex HANDLE of just deleted threadlist entry.
        (init_cygheap::find_tls): New implementation taking tls pointer as
        search parameter.  Return threadlist_t *.
        (init_cygheap::find_tls): Return threadlist_t *.  Define ix as auto
        variable.  Drop exception handling since crash must be made impossible
        due to correct synchronization.  Return with locked mutex.
        * cygheap.h (struct threadlist_t): Define.
        (struct init_cygheap): Convert threadlist to threadlist_t type.
        (init_cygheap::remove_tls): Align declaration to above change.
        (init_cygheap::find_tls): Ditto.
        (init_cygheap::unlock_tls): Define.
        * cygtls.cc (_cygtls::remove): Unlock and close mutex when finishing.
        * exceptions.cc (sigpacket::process): Lock _cygtls area of thread before
        accessing it.
        * fhandler_termios.cc (fhandler_termios::bg_check): Ditto.
        * sigproc.cc (sig_send): Ditto.
        * thread.cc (pthread::exit): Ditto.  Add comment.
        (pthread::cancel): Ditto.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=src&r1=1.6581&r2=1.6582
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/cygheap.cc.diff?cvsroot=src&r1=1.186&r2=1.187
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/cygheap.h.diff?cvsroot=src&r1=1.177&r2=1.178
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/cygtls.cc.diff?cvsroot=src&r1=1.96&r2=1.97
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/exceptions.cc.diff?cvsroot=src&r1=1.445&r2=1.446
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler_termios.cc.diff?cvsroot=src&r1=1.109&r2=1.110
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/sigproc.cc.diff?cvsroot=src&r1=1.427&r2=1.428
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/thread.cc.diff?cvsroot=src&r1=1.295&r2=1.296

Reply via email to