linuxdcpp-team team mailing list archive
-
linuxdcpp-team team
-
Mailing list archive
-
Message #01731
[Bug 617757] [NEW] portable FastCriticalSection implementation
Public bug reported:
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.
** Affects: linuxdcpp
Importance: Undecided
Status: New
** Tags: core
--
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 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.
Follow ups
-
[Bug 617757] Re: portable FastCriticalSection implementation
From: poy, 2011-01-13
-
[Bug 617757] Re: portable FastCriticalSection implementation
From: Steven Sheehy, 2010-09-24
-
[Bug 617757] Re: portable FastCriticalSection implementation
From: eMTee, 2010-09-23
-
[Bug 617757] Re: portable FastCriticalSection implementation
From: Gennady Proskurin, 2010-09-23
-
[Bug 617757] Re: portable FastCriticalSection implementation
From: Big Muscle, 2010-08-20
-
[Bug 617757] Re: portable FastCriticalSection implementation
From: Launchpad Bug Tracker, 2010-08-17
-
[Bug 617757] Re: portable FastCriticalSection implementation
From: Steven Sheehy, 2010-08-17
-
[Bug 617757] Re: portable FastCriticalSection implementation
From: Steven Sheehy, 2010-08-17
-
[Bug 617757] Re: portable FastCriticalSection implementation
From: Gennady Proskurin, 2010-08-15
-
[Bug 617757] Re: portable FastCriticalSection implementation
From: gpr, 2010-08-14
-
[Bug 617757] [NEW] portable FastCriticalSection implementation
From: gpr, 2010-08-14
References