← Back to team overview

linuxdcpp-team team mailing list archive

[Bug 617757] Re: portable FastCriticalSection implementation

 

Fixed in DC++ 0.780.

** Changed in: dcplusplus
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of LinuxDC++
Team, which is subscribed to LinuxDC++.
https://bugs.launchpad.net/bugs/617757

Title:
  portable FastCriticalSection implementation

Status in DC++:
  Fix Released
Status in Linux DC++:
  Confirmed

Bug description:
  patch attached.
  It may have benefits on win32, the old implementation used sleep(1) in "fast" critical section (Thread::yield).
  Now Thread::yield seems to be unused, I think it should be removed, it's dangerous. Incorrectly using scheduler's yield may lead to unnecessary cpu consumption.

  I tested only unix after patching this.





References