From f9a510fd8ae49c42e173da5df6dfc48017fca327 Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Mon, 8 Jun 2009 23:55:52 +0000 Subject: [PATCH] There is no need for an atomic read if we are not in a threaded case. This commit was SVN r21394. --- ompi/mca/pml/ob1/pml_ob1_sendreq.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ompi/mca/pml/ob1/pml_ob1_sendreq.h b/ompi/mca/pml/ob1/pml_ob1_sendreq.h index 880244c6be..0c17819619 100644 --- a/ompi/mca/pml/ob1/pml_ob1_sendreq.h +++ b/ompi/mca/pml/ob1/pml_ob1_sendreq.h @@ -253,7 +253,9 @@ send_request_pml_complete(mca_pml_ob1_send_request_t *sendreq) static inline bool send_request_pml_complete_check(mca_pml_ob1_send_request_t *sendreq) { +#if OPAL_HAVE_THREAD_SUPPORT opal_atomic_rmb(); +#endif /* if no more events are expected for the request and the whole message is * already sent and send fragment scheduling isn't running in another * thread then complete the request on PML level. From now on, if user