-
Notifications
You must be signed in to change notification settings - Fork 434
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
initial import for lifecycle subscriber #292
Conversation
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.
It compiles, but segfaults with the first callback with invalid allocator
@@ -77,8 +77,7 @@ create_subscription_factory( | |||
AnySubscriptionCallback<MessageT, Alloc> any_subscription_callback(allocator); | |||
any_subscription_callback.set(std::forward<CallbackT>(callback)); | |||
|
|||
auto message_alloc = | |||
std::make_shared<typename subscription::Subscription<MessageT, Alloc>::MessageAlloc>(); | |||
auto message_alloc = std::make_shared<typename subscription::Subscription<MessageT, Alloc>::MessageAlloc>(); |
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.
Not sure if we have to create a SubscriptionT allocator here
@Karsten1987 what is the status of this ? Should this stay stale or be closed ? |
The status is as mentioned in the above comment. This commit compiles, but segfaults. I'll have to debug this in purpose with @wjwwood. |
Closing because this has stayed stale too long. |
@wjwwood initial import for lifecycle_subscriber and the respective fixes for the subscription factory.
This is work in progress.