[Patch] PR35063 __gthread_mutex_destroy
Janne Blomqvist
blomqvist.janne@gmail.com
Mon Feb 25 21:37:00 GMT 2008
Hello,
the attached patch adds __gthread_mutex_destroy as a function that all
thread implementations must provide. For posix, posix95, dce and tpf it
calls pthread_mutex_destroy, for win32 it calls CloseHandle, and for the
rest there is a null implementation that always returns success.
The origin of the patch was a gfortran bugreport where libgfortran
exhausted the available handles on windows due to not destroying the
mutex. As 4.3 was really close, it was decided to do a minimally
instrusive patch that only fixed the issue on windows where it was
reported (see http://gcc.gnu.org/ml/fortran/2008-02/msg00072.html). This
is the "proper" fix, and also fixes libgfortran to use
__gthread_mutex_destroy rather than the macro kludge the 4.3 patch did.
For the patch, I have merely guessed that the posix95, dce and tpf
implementations provide pthread_mutex_destroy, as I have no way of
testing these.
Ok for trunk?
--
Janne Blomqvist
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ChangeLog
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20080225/5c75b0a9/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr35063-2.diff
Type: text/x-patch
Size: 7535 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20080225/5c75b0a9/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20080225/5c75b0a9/attachment.sig>
More information about the Fortran
mailing list