浏览代码

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

Nathalie Furmento 12 年之前
父节点
当前提交
869c4940f0
共有 1 个文件被更改,包括 2 次插入1 次删除
  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];