mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:17:45 +00:00
AK+Kernel: Remove RefPtrTraits template param in userspace code
Only the kernel actually uses RefPtrTraits, so let's not burden userspace builds with the complexity.
This commit is contained in:
parent
9e994da2ac
commit
75dca629df
5 changed files with 30 additions and 29 deletions
|
@ -30,11 +30,11 @@ class WeakLink : public RefCounted<WeakLink> {
|
|||
friend class WeakPtr;
|
||||
|
||||
public:
|
||||
template<typename T, typename PtrTraits = RefPtrTraits<T>>
|
||||
RefPtr<T, PtrTraits> strong_ref() const
|
||||
template<typename T>
|
||||
RefPtr<T> strong_ref() const
|
||||
requires(IsBaseOf<RefCountedBase, T>)
|
||||
{
|
||||
RefPtr<T, PtrTraits> ref;
|
||||
RefPtr<T> ref;
|
||||
|
||||
{
|
||||
if (!(m_consumers.fetch_add(1u << 1, AK::MemoryOrder::memory_order_acquire) & 1u)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue