Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attach data to hg_bulk_t and hg_addr_t #627

Open
mdorier opened this issue Oct 21, 2022 · 1 comment
Open

Attach data to hg_bulk_t and hg_addr_t #627

mdorier opened this issue Oct 21, 2022 · 1 comment

Comments

@mdorier
Copy link

mdorier commented Oct 21, 2022

Is your feature request related to a problem? Please describe.

In Margo we use HG_Set/Get_data to attach data to hg_handle_t handles (typically we attach the margo_instance_id that was used to create the handle, along with some other information). A similar mechanism for hg_bulk_t and hg_addr_t would be really useful.

Describe the solution you'd like

hg_return_t HG_Bulk_set_data(hg_bulk_t handle, void *data, void (*free_callback)(void *));
void * HG_Bulk_get_data(hg_bulk_t handle);

hg_return_t HG_Addr_set_data(hg_addr_t handle, void *data, void (*free_callback)(void *));
void * HG_Addr_get_data(hg_addr_t handle);
@soumagne
Copy link
Member

Yes I think I agree and that would prevent you for example from re-implementing another hash table or something similar to retrieve whatever you need to associate to the addr / bulk.

@soumagne soumagne added this to the mercury-2.3.0 milestone Dec 9, 2022
@soumagne soumagne modified the milestones: mercury-2.3.0, future Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants