Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
03d936a505
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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;
 }