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

feat: introduce scope abstraction #318

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pollend
Copy link
Collaborator

@pollend pollend commented Mar 2, 2024

I want to uncouple the pool from the memory tracking. scopes works similarly in principle but they don't track the memory that is managed by the user.

The general gist is that a scope can take the ownership of a memory similar to a pool, but developer is required to call free on the memory from the pool and not Q_Free. this will introduce a double free where the user frees the memory as well as the scope.

the scope is just to track the lifecycle of some memory associated with some scope.

going forward I would like to omit the tracking from release builds. my plan is to have the tracking available for builds with debug symbols.

Signed-off-by: Michael Pollind <mpollind@gmail.com>
Signed-off-by: Michael Pollind <mpollind@gmail.com>
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.

1 participant