linuxdcpp-team team mailing list archive
-
linuxdcpp-team team
-
Mailing list archive
-
Message #01725
[Bug 617591] [NEW] Pointer.h/intrusive_ptr_base class is too heavy-weight
Public bug reported:
"Pointer.h/intrusive_ptr_base" class is too heavy-weight (at least on unix), it uses pthread mutex for every increment/decrement. And since this mutex is static (Thread::mtx), it leads to bad concurrency even for independent intrusive pointers.
Patch attached, which uses portable atomic reference counters from boost.
It uses boost::detail::atomic_count from shared_ptr, so it may theoretically change in future (since it is in detail), but I doubt it will.
** Affects: linuxdcpp
Importance: Undecided
Status: New
--
Pointer.h/intrusive_ptr_base class is too heavy-weight
https://bugs.launchpad.net/bugs/617591
You received this bug notification because you are a member of LinuxDC++
Team, which is subscribed to LinuxDC++.
Status in Linux DC++: New
Bug description:
"Pointer.h/intrusive_ptr_base" class is too heavy-weight (at least on unix), it uses pthread mutex for every increment/decrement. And since this mutex is static (Thread::mtx), it leads to bad concurrency even for independent intrusive pointers.
Patch attached, which uses portable atomic reference counters from boost.
It uses boost::detail::atomic_count from shared_ptr, so it may theoretically change in future (since it is in detail), but I doubt it will.
Follow ups
-
[Bug 617591] Re: Pointer.h/intrusive_ptr_base class is too heavy-weight
From: poy, 2011-01-13
-
[Bug 617591] Re: Pointer.h/intrusive_ptr_base class is too heavy-weight
From: eMTee, 2010-09-23
-
[Bug 617591] Re: Pointer.h/intrusive_ptr_base class is too heavy-weight
From: Gennady Proskurin, 2010-09-23
-
[Bug 617591] Re: Pointer.h/intrusive_ptr_base class is too heavy-weight
From: Gennady Proskurin, 2010-09-23
-
[Bug 617591] Re: Pointer.h/intrusive_ptr_base class is too heavy-weight
From: Steven Sheehy, 2010-09-12
-
[Bug 617591] Re: Pointer.h/intrusive_ptr_base class is too heavy-weight
From: Launchpad Bug Tracker, 2010-08-17
-
[Bug 617591] Re: Pointer.h/intrusive_ptr_base class is too heavy-weight
From: Gennady Proskurin, 2010-08-15
-
[Bug 617591] Re: Pointer.h/intrusive_ptr_base class is too heavy-weight
From: gpr, 2010-08-14
-
[Bug 617591] Re: Pointer.h/intrusive_ptr_base class is too heavy-weight
From: gpr, 2010-08-14
-
[Bug 617591] Re: Pointer.h/intrusive_ptr_base class is too heavy-weight
From: Steven Sheehy, 2010-08-14
-
[Bug 617591] Re: Pointer.h/intrusive_ptr_base class is too heavy-weight
From: Razzloss, 2010-08-13
-
[Bug 617591] Re: Pointer.h/intrusive_ptr_base class is too heavy-weight
From: gpr, 2010-08-13
-
[Bug 617591] [NEW] Pointer.h/intrusive_ptr_base class is too heavy-weight
From: gpr, 2010-08-13
-
[Bug 617591] Re: Pointer.h/intrusive_ptr_base class is too heavy-weight
From: gpr, 2010-08-13
References