Explorar o código

Solve Mutex inconsistence

Romain LION %!s(int64=4) %!d(string=hai) anos
pai
achega
39528444a6

+ 1 - 1
mpi/src/mpi_failure_tolerance/starpu_mpi_ft_service_comms.c

@@ -180,7 +180,7 @@ int _starpu_mpi_ft_service_post_send(void* msg, int count, int rank, int tag, MP
 	STARPU_PTHREAD_MUTEX_LOCK(&ft_service_requests_mutex);
 	STARPU_PTHREAD_MUTEX_LOCK(&ft_service_requests_mutex);
 	ready_send_ft_service_msg++;
 	ready_send_ft_service_msg++;
 	_starpu_mpi_req_list_push_back(&ready_send_ft_service_requests, req);
 	_starpu_mpi_req_list_push_back(&ready_send_ft_service_requests, req);
-	STARPU_PTHREAD_MUTEX_LOCK(&ft_service_requests_mutex);
+	STARPU_PTHREAD_MUTEX_UNLOCK(&ft_service_requests_mutex);
 
 
 	_starpu_mpi_wake_up_progress_thread();
 	_starpu_mpi_wake_up_progress_thread();