-
Notifications
You must be signed in to change notification settings - Fork 115
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
Add a way to reset GSDK in cppsdk #178
base: main
Are you sure you want to change the base?
Conversation
Adds a way to stop gsdk before calling exit() or exiting main
@artkuy please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
hey @artkuy thanks for the contribution. This looks like a change in the public GSDK API, which makes it hard to accept since we'll have to change all other implementations as well. Can you shed more light on the issue your PR tries to solve? Maybe there's something else we can do on the C++ side to prevent this issue from happening. |
Hi @dgkanatsios, in our use case it's a problem that We need a way to control the lifetime of GSDK and stop it before we destroy our memory allocator. |
thank you for the explanation - I have asked C++ experts in our team to take a look at it. |
Perhaps, but this seems rather prone to future issues as it's any dynamic allocation that would cause crashing. So any future addition to the project could quickly break it again. |
This PR modifies the cppsdk to add a way to stop GSDK before calling exit() or exiting main.
Allows user to control lifetime of GSDK, needed to prevent allocations from happening after custom memory allocator has been destroyed. This is done by GSDK::logMessage from the heartbeat thread.