Browse Source

src/common/thread.c: function xbt_mutex_acquire does not have a return value

Nathalie Furmento 12 years ago
parent
commit
869c4940f0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/common/thread.c

+ 2 - 1
src/common/thread.c

@@ -120,7 +120,8 @@ int starpu_pthread_mutex_trylock(starpu_pthread_mutex_t *mutex)
 	file += sizeof(char);
 	_STARPU_TRACE_TRYLOCK_MUTEX(file,__LINE__);
 
-	return xbt_mutex_acquire(*mutex);
+	xbt_mutex_acquire(*mutex);
+	return 0;
 }
 
 static int used_key[MAX_TSD];