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

Support Static Linking #1261

Merged
merged 9 commits into from
Jan 23, 2022
Merged

Conversation

mikeb01
Copy link
Contributor

@mikeb01 mikeb01 commented Nov 26, 2021

Add aeron_symbol_table and use it to resovle internal symbols.
Encapsulate dlsym lookups.
Separate object and function pointers and correctly deal generic versions of each.
Remove multiple instances of warning ignores for -Wpendantic.

…capsulate dlsym lookups. Separate object and function pointers and correctly deal generic versions of each. Remove multiple instances of warning ignores for -Wpendantic.
@mikeb01
Copy link
Contributor Author

mikeb01 commented Nov 28, 2021

I've added a unit test and switched over to specifying a table length instead of relying on a NULL terminator. It will still early exit on NULL fields in the table.

@@ -282,6 +283,19 @@ aeron_idle_strategy_t aeron_idle_strategy_backoff =
aeron_idle_strategy_backoff_state_init_args
};

static const aeron_symbol_table_obj_t aeron_idle_strategy_table[] =
{
{ "sleeping", "aeron_idle_strategy_sleeping", &aeron_idle_strategy_sleeping },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Name should be sleep rather than sleeping to have consistent naming.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, but I'd like to make that a separate change to this PR. The current PR preserves behaviour: https://github.com/real-logic/aeron/blob/master/aeron-client/src/main/c/aeron_agent.c#L301. I think it also requires a "sleep-ms" to be consistent with the Java driver as well.

@mjpt777 mjpt777 merged commit 596a73b into real-logic:master Jan 23, 2022
@mikeb01 mikeb01 deleted the support_static_linking branch February 14, 2022 22:30
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.

3 participants