Fix race condition during shutdown causing a crash in
gotoblas_set_affinity().
This commit is contained in:
Ton van den Heuvel 2015-03-18 13:22:43 +01:00
parent cdefdb21cd
commit b6438dedea
2 changed files with 5 additions and 2 deletions

View File

@ -124,5 +124,8 @@ In chronological order:
* Dan Kortschak
* [2015-01-07] Added test for drotmg bug #484.
* Ton van den Heuvel <https://github.com/ton>
* [2015-03-18] Fix race condition during shutdown causing a crash in gotoblas_set_affinity().
* [Your name or handle] <[email or website]>
* [Date] [Brief summary of your changes]

View File

@ -1353,6 +1353,8 @@ void DESTRUCTOR gotoblas_quit(void) {
if (gotoblas_initialized == 0) return;
blas_shutdown();
#ifdef PROFILE
moncontrol (0);
#endif
@ -1374,8 +1376,6 @@ void DESTRUCTOR gotoblas_quit(void) {
#ifdef PROFILE
moncontrol (1);
#endif
blas_shutdown();
}
#if (defined(C_PGI) || (!defined(C_SUN) && defined(F_INTERFACE_SUN))) && (defined(ARCH_X86) || defined(ARCH_X86_64))