3 Commits
Author SHA1 Message Date
Marc RousavyandGitHub ab2a05085f fix: Some code cleanups (atomic<bool>, move assignment, const) (#1269)
* fix: Make more stuff `const`

* fix: Add move assignment operator for `WeakReference`

* fix: Use `atomic<bool>` for `ReferenceState`
2026-03-18 12:09:26 +01:00
Marc RousavyandGitHub 6998588b70 chore: Rename BorrowingReference<T> -> WeakReference<T>, and OwningReference<T> -> BorrowingReference<T> (#523)
* chore: Rename `BorrowingReference<T>` -> `WeakReference<T>`, and `OwningReference<T>` -> `BorrowingReference<T>`

* chore: Remove unused flag

* chore: Lint

* fix: remove unnecessary nullptr compare
2025-02-03 18:30:04 +01:00
Marc RousavyandGitHub 1d6f8c30c8 perf: Make OwningReference/BorrowingReference only allocate memory block once and remove locking (#522)
* perf: Make `OwningReference`/`BorrowingReference` only allocate a large block once

* fix: Fix usage

* style

* fix: Docs

* perf: Remove mutex locking from reference types entirely!
2025-02-03 18:19:29 +01:00