소스 검색

bug fix (if the rw-lock are used): release the rw-lock after sync'ing RAM

Cédric Augonnet 16 년 전
부모
커밋
4a96fba2c2
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      src/datawizard/coherency.c

+ 4 - 0
src/datawizard/coherency.c

@@ -371,8 +371,12 @@ void starpu_sync_data_with_mem(data_state *state)
 		pthread_mutex_unlock(&statenode.lock);
 	}
 #else
+	/* NB: fetch_data automatically grabs the RW-lock so it needs to be
+ 	 * released explicitely afterward */
 	ret = fetch_data(state, R);
 	STARPU_ASSERT(!ret);
+
+	release_rw_lock(&state->data_lock);
 #endif
 }