Skip to content

Commit 7ede7ce

Browse files
committed
Fix logic error when creating a new continuation
Signed-off-by: Joseph Schuchart <[email protected]>
1 parent 14a8574 commit 7ede7ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/mpiext/continue/c/continuation.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ ompi_continuation_t *ompi_continue_cont_create(
436436
/* signal that the continuation request has a new continuation */
437437
OBJ_RETAIN(cont_req);
438438

439-
int32_t num_active = opal_atomic_add_fetch_32(&cont_req->cont_num_active, 1);
439+
int32_t num_active = opal_atomic_fetch_add_32(&cont_req->cont_num_active, 1);
440440
if (num_active == 0) {
441441
const bool using_threads = opal_using_threads();
442442
if (using_threads) {

0 commit comments

Comments
 (0)