summaryrefslogtreecommitdiff
path: root/src/ref_ptr.hh
AgeCommit message (Collapse)Author
2024-08-15Remove some more unnecessary includesMaxime Coste
2022-04-12Fix crash when deleting a buffer from a user mappingMaxime Coste
Deleting a buffer resets normal mode on all clients that were displaing that buffer, but ScopedForceNormalMode that are used from user mode do not take this possiblity into account on destruction, which leads to deleting the last normal mode from the context, ending up with an empty mode stack. Fixes #3909
2018-02-28RefPtr: use inconditional noexcept specification on destructorMaxime Coste
The conditional specification could end up being recursive, assume destructors must be (as is the C++ default) noexcept.
2018-02-25RefPtr: Add some more noexcept specificationsMaxime Coste
2017-08-04Fix SafeCountable and RefCountable copy/move logicMaxime Coste
The safe and ref counts should not get copied around.
2017-01-31Add some noexcept to pointer policiesMaxime Coste
2017-01-29Remove unneeded assignment to null in RefPtr::releaseMaxime Coste
2016-12-03Refactor RefPtr handling to use a policy classMaxime Coste
THe previous overload based system was pretty complex for no good reason.
2015-12-12Fix input mode keep alive handling, use a refcount for input modesMaxime Coste
Fixes #528
2015-11-10Avoid unneeded inc/dec rec in RefPtr::operator=Maxime Coste
2015-11-07Store the last used buffer in clientsMaxime Coste
Fixes #474
2015-11-04always_inline a few RefPtr operatorsMaxime Coste
2015-02-24Always inline RefPtr::{acquire,release,moved}Maxime Coste
2015-02-23Use RefPtr as SafePtr backendMaxime Coste
2015-02-19Rename safe_ptr and ref_ptr to SafePtr and RefPtrMaxime Coste
2015-01-18Replace std::shared_ptr with homemade, intrusive, ref_ptrMaxime Coste
That saves a lot of memory as sizeof(SharedString) is now one pointer less.