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

Multithreaded #22

Open
Nekotekina opened this issue Dec 17, 2016 · 1 comment
Open

Multithreaded #22

Nekotekina opened this issue Dec 17, 2016 · 1 comment

Comments

@Nekotekina
Copy link

Hi! The gcpp is very interesting, but I'm failing to realize how it's supposed to work in multithreaded program. Especially the part that registers deferred_ptr objects and resets them in the heap destructor.

For example, would it be possible to demand no external reference exist at the end of heap's lifetime instead? If heap destructor would detect such a reference after destroying all the objects (checking remaining refcounters), it would call std::terminate.

@hsutter
Copy link
Owner

hsutter commented Jan 17, 2017

Thanks for this suggestion. The current implementation is single-threaded; see the readme for notes about adding concurrency support.

For now I'm waiting for feedback and bug reports from actual use of the library, and deferring enhancements and optimizations until then but keeping them in the backlog.

@hsutter hsutter added this to the Future - Backlog milestone Sep 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants