forked from msys2/msys2-runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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.
- Loading branch information
1 parent
c2f50c4
commit 26158dc
Showing
8 changed files
with
202 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,28 @@ | ||
2014-11-28 Corinna Vinschen <[email protected]> | ||
|
||
* 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. | ||
|
||
2014-11-28 Corinna Vinschen <[email protected]> | ||
|
||
* cygheap.cc (init_cygheap::find_tls): Add comment. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.