[Patch] PR35063 __gthread_mutex_destroy

Mark Mitchell mark@codesourcery.com
Fri Feb 29 22:02:00 GMT 2008


Janne Blomqvist wrote:

> 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.

This is OK, but please be on the alert for reports for problems relating to:

> 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.

If those systems turn not to have the functions, then we'll want to fall 
back to null implementation -- or whatever alternatives they do have.

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Fortran mailing list