浏览代码

mpi/src/starpu_mpi.c: acces to ready_requests must be protected

Nathalie Furmento 8 年之前
父节点
当前提交
5fcb627544
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      mpi/src/starpu_mpi.c

+ 1 - 1
mpi/src/starpu_mpi.c

@@ -1307,8 +1307,8 @@ static void _starpu_mpi_receive_early_data(struct _starpu_mpi_envelope *envelope
 
 	// Handle the request immediatly to make sure the mpi_irecv is
 	// posted before receiving an other envelope
-	STARPU_PTHREAD_MUTEX_UNLOCK(&progress_mutex);
 	_starpu_mpi_req_list_erase(ready_requests, early_data_handle->req);
+	STARPU_PTHREAD_MUTEX_UNLOCK(&progress_mutex);
 	_starpu_mpi_handle_ready_request(early_data_handle->req);
 	STARPU_PTHREAD_MUTEX_LOCK(&progress_mutex);
 }