瀏覽代碼

memory_nodes.c: use _STARPU_PTHREAD_RWLOCK_INIT instead of pthread_rwlock_init().

[Coccinelle] tools/dev/experimental/use_starpu_pthread_macros.cocci
Cyril Roelandt 12 年之前
父節點
當前提交
03d936a505
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/datawizard/memory_nodes.c

+ 1 - 1
src/datawizard/memory_nodes.c

@@ -44,7 +44,7 @@ void _starpu_init_memory_nodes(void)
 	_starpu_init_mem_chunk_lists();
 	_starpu_init_data_request_lists();
 
-	pthread_rwlock_init(&descr.conditions_rwlock, NULL);
+	_STARPU_PTHREAD_RWLOCK_INIT(&descr.conditions_rwlock, NULL);
 	descr.total_condition_count = 0;
 }