diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2012-05-23 16:26:34 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2012-05-23 16:26:34 +0000 |
commit | bff08077a64cc2894fe7d528a848d81cc00950a0 (patch) | |
tree | 638786018ba2f4839dd0ba1eb37e670a7b95069d /newlib/libc/stdio/sccl.c | |
parent | 86b35406f22202a3c382ca06551e5c0fa3a0e628 (diff) | |
download | cygnal-bff08077a64cc2894fe7d528a848d81cc00950a0.tar.gz cygnal-bff08077a64cc2894fe7d528a848d81cc00950a0.tar.bz2 cygnal-bff08077a64cc2894fe7d528a848d81cc00950a0.zip |
* thread.cc: Add a temporary workaround to help Cygwin along while
newlib doesn't install cleanup handlers. Explain the problem.
(class __cygwin_lock_handler): New class.
(__cygwin_lock_cleanup): New function.
(__cygwin_lock_lock): Push __cygwin_lock_cleanup thread cleanup
handler.
(__cygwin_lock_trylock): Ditto.
(__cygwin_lock_unlock): Pop thread cleanup handler.
(pthread::pop_cleanup_handler): Temporarily allow cleanup function to
destroy cleanup handler so we can pop in another function than we
pushed in.
Diffstat (limited to 'newlib/libc/stdio/sccl.c')
0 files changed, 0 insertions, 0 deletions