-
Notifications
You must be signed in to change notification settings - Fork 892
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
Support Static Linking #1261
Conversation
…capsulate dlsym lookups. Separate object and function pointers and correctly deal generic versions of each. Remove multiple instances of warning ignores for -Wpendantic.
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. |
…ed length check function. Use typedef for generic function pointer.
@@ -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 }, |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
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.