Skip to content

Ensure to threadshift callback functions#3601

Merged
rhc54 merged 1 commit intoopenpmix:masterfrom
rhc54:topic/srvr
May 20, 2025
Merged

Ensure to threadshift callback functions#3601
rhc54 merged 1 commit intoopenpmix:masterfrom
rhc54:topic/srvr

Conversation

@rhc54
Copy link
Contributor

@rhc54 rhc54 commented May 20, 2025

The server's callback functions are expected to be executed in the host's progress thread. However, it is possible that the host could execute it in the server's upcall to them - we ask that they don't, but no guarantee. So in the interest of protecting against that scenario, and to minimize time spent in their progress thread, ensure we threadshift the callback function before processing it.

The server's callback functions are expected to be executed in the host's
progress thread. However, it is possible that the host could execute
it in the server's upcall to them - we ask that they don't, but no
guarantee. So in the interest of protecting against that scenario,
and to minimize time spent in their progress thread, ensure we threadshift
the callback function before processing it.

Signed-off-by: Ralph Castain <rhc@pmix.org>
@rhc54 rhc54 merged commit 32f9c9d into openpmix:master May 20, 2025
20 checks passed
@rhc54 rhc54 deleted the topic/srvr branch May 20, 2025 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant