Browse Source

starpu_shutdown(): unlock init_mutex when leaving early.

Cyril Roelandt 13 years ago
parent
commit
794ed6285a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/core/workers.c

+ 1 - 0
src/core/workers.c

@@ -570,6 +570,7 @@ void starpu_shutdown(void)
 	if (init_count)
 	{
 		_STARPU_DEBUG("Still somebody needing StarPU, don't deinitialize\n");
+		_STARPU_PTHREAD_MUTEX_UNLOCK(&init_mutex);
 		return;
 	}