[Linuxdcpp-team] [Bug 804559] Re: portable semaphore implementation

2011-08-25 Thread Gennady Proskurin
btw, boost1.47 has issues with interprocess_semaphore see boost bug https://svn.boost.org/trac/boost/ticket/4524 I think my patch should not be merged until boost bug 4524 is resolved I keep an eye on bug 4524 and will drop a note here ** Bug watch added: Boost Trac #4524 http://svn.boost.org

[Linuxdcpp-team] [Bug 804559] Re: portable semaphore implementation

2011-07-01 Thread Gennady Proskurin
** Patch added: "sem.patch" https://bugs.launchpad.net/bugs/804559/+attachment/2187219/+files/sem.patch -- You received this bug notification because you are a member of Dcplusplus-team, which is subscribed to DC++. https://bugs.launchpad.net/bugs/804559 Title: portable semaphore implementa

[Linuxdcpp-team] [Bug 804559] [NEW] portable semaphore implementation

2011-07-01 Thread Gennady Proskurin
Public bug reported: Portable "class Semaphore" implementation using boost::interprocess_semaphore. Patch attached. ** Affects: dcplusplus Importance: Undecided Status: New -- You received this bug notification because you are a member of Dcplusplus-team, which is subscribed to DC

[Linuxdcpp-team] [Bug 617591] Re: Pointer.h/intrusive_ptr_base class is too heavy-weight

2010-09-23 Thread Gennady Proskurin
I mistaken somewhat , bugs #617757 and #617591 should be "swapped" in my last comment -- 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++.

[Linuxdcpp-team] [Bug 617757] Re: portable FastCriticalSection implementation

2010-09-23 Thread Gennady Proskurin
I agree, these typedefs are better than my patch. The only drawback I see is that recursive_mutex and lock_guard are not garanteed to be header-only. -- portable FastCriticalSection implementation https://bugs.launchpad.net/bugs/617757 You received this bug notification because you are a member

[Linuxdcpp-team] [Bug 617591] Re: Pointer.h/intrusive_ptr_base class is too heavy-weight

2010-09-23 Thread Gennady Proskurin
bug #617757 is fixed, in the same way I proposed. bug #617591 is fixed as "Big Muscle" proposed in bug notes. It is better than in my patch. The only drawback is that boost/recursive_mutex.hpp is not garanteed to be header-only. So, I consider this two bugs are fixed. -- Pointer.h/intrusive_ptr

Re: [Linuxdcpp-team] [Merge] lp:~gpr/dcplusplus/sync into lp:dcplusplus

2010-08-18 Thread Gennady Proskurin
My motivation for writing all this patches (besides bug in using pthread_cond) was bad (coarse) locking for unix. It uses one static mutex in Thread class for almost all synchronization in the whole code. While I agree that spinning is suitable for FastCriticalSection, it's not easy to implemen

Re: [Linuxdcpp-team] [Merge] lp:~gpr/dcplusplus/sync into lp:dcplusplus

2010-08-18 Thread Gennady Proskurin
About weak/strong ordering, much information is available in internet, for example: http://en.wikipedia.org/wiki/Memory_ordering http://en.wikipedia.org/wiki/Memory_barrier http://msdn.microsoft.com/en-us/library/ms686355(VS.85).aspx In short, "strong" ordering garantees that all threads in all p

[Linuxdcpp-team] [Merge] lp:~gpr/dcplusplus/sync into lp:dcplusplus

2010-08-17 Thread Gennady Proskurin
Gennady Proskurin has proposed merging lp:~gpr/dcplusplus/sync into lp:dcplusplus. Requested reviews: Dcplusplus-team (dcplusplus-team) Related bugs: #617021 Semaphore potentially may underflow and become negative https://bugs.launchpad.net/bugs/617021 #617591 Pointer.h

[Linuxdcpp-team] [Merge] lp:~gpr/linuxdcpp/sync into lp:linuxdcpp

2010-08-15 Thread Gennady Proskurin
Gennady Proskurin has proposed merging lp:~gpr/linuxdcpp/sync into lp:linuxdcpp. Requested reviews: LinuxDC++ Team (linuxdcpp-team) Related bugs: #617021 Semaphore potentially may underflow and become negative https://bugs.launchpad.net/bugs/617021 #617591 Pointer.h/intrusive_ptr_base

[Linuxdcpp-team] [Bug 617591] Re: Pointer.h/intrusive_ptr_base class is too heavy-weight

2010-08-15 Thread Gennady Proskurin
** Branch linked: lp:~gpr/linuxdcpp/sync -- 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 DC++: New Status in Linux DC++: Con

[Linuxdcpp-team] [Bug 617757] Re: portable FastCriticalSection implementation

2010-08-15 Thread Gennady Proskurin
** Branch linked: lp:~gpr/linuxdcpp/sync -- portable FastCriticalSection implementation https://bugs.launchpad.net/bugs/617757 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: patch attach

[Linuxdcpp-team] [Bug 617988] Re: atomic counters implemented

2010-08-15 Thread Gennady Proskurin
** Branch linked: lp:~gpr/linuxdcpp/sync -- atomic counters implemented https://bugs.launchpad.net/bugs/617988 You received this bug notification because you are a member of LinuxDC++ Team, which is subscribed to LinuxDC++. Status in DC++: New Status in Linux DC++: New Bug description: Implemen

[Linuxdcpp-team] [Bug 617021] Re: Semaphore potentially may underflow and become negative

2010-08-15 Thread Gennady Proskurin
** Branch linked: lp:~gpr/linuxdcpp/sync -- Semaphore potentially may underflow and become negative https://bugs.launchpad.net/bugs/617021 You received this bug notification because you are a member of LinuxDC++ Team, which is subscribed to LinuxDC++. Status in DC++: New Status in Linux DC++: Co