Skip to content

Commit

Permalink
top_finalize and top_prefinalize should not pop the callback
Browse files Browse the repository at this point in the history
  • Loading branch information
mdorier committed Sep 3, 2024
1 parent a49a545 commit 0855b20
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/margo-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -395,11 +395,6 @@ int margo_provider_top_prefinalize_callback(margo_instance_id mid,
fcb = fcb->next;
}
if (fcb == NULL) return 0;
if (prev == NULL) {
mid->prefinalize_cb = fcb->next;
} else {
prev->next = fcb->next;
}
if (cb) *cb = fcb->callback;
if (uargs) *uargs = fcb->uargs;
return 1;
Expand Down Expand Up @@ -492,11 +487,6 @@ int margo_provider_top_finalize_callback(margo_instance_id mid,
fcb = fcb->next;
}
if (fcb == NULL) return 0;
if (prev == NULL) {
mid->finalize_cb = fcb->next;
} else {
prev->next = fcb->next;
}
if (cb) *cb = fcb->callback;
if (uargs) *uargs = fcb->uargs;
return 1;
Expand Down

0 comments on commit 0855b20

Please sign in to comment.