Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions orte/orted/pmix/pmix_server_gen.c
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,16 @@ void pmix_tool_connected_fn(opal_list_t *info,

}

static void lgcbfn(int sd, short args, void *cbdata)
{
orte_pmix_server_op_caddy_t *cd = (orte_pmix_server_op_caddy_t*)cbdata;

if (NULL != cd->cbfunc) {
cd->cbfunc(cd->status, cd->cbdata);
}
OBJ_RELEASE(cd);
}

void pmix_server_log_fn(opal_process_name_t *requestor,
opal_list_t *info,
opal_list_t *directives,
Expand Down Expand Up @@ -924,9 +934,13 @@ void pmix_server_log_fn(opal_process_name_t *requestor,
}
}

if (NULL != cbfunc) {
cbfunc(OPAL_SUCCESS, cbdata);
}
/* we cannot directly execute the callback here
* as it would threadlock - so shift to somewhere
* safe */
rc = ORTE_SUCCESS; // unused - silence compiler warning
ORTE_PMIX_THREADSHIFT(requestor, NULL, rc,
NULL, NULL, lgcbfn,
cbfunc, cbdata);
}

int pmix_server_job_ctrl_fn(const opal_process_name_t *requestor,
Expand Down