Explorar o código

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

Nathalie Furmento %!s(int64=12) %!d(string=hai) anos
pai
achega
869c4940f0
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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];