[Bug 26500] New: Critical section busy wait
wine-bugs at winehq.org
wine-bugs at winehq.org
Mon Mar 21 03:52:33 CDT 2011
http://bugs.winehq.org/show_bug.cgi?id=26500
Summary: Critical section busy wait
Product: Wine
Version: 1.3.16
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ntdll
AssignedTo: wine-bugs at winehq.org
ReportedBy: vvoznesensky at gmail.com
The critical section machinery (EnterCriticalSection, LeaveCriticalSection,
TryEnterCriticalSection) is realized suboptimal: waiting thread consumes CPU
cycles polling LockCount instead of using system lock like pthread_mutex_lock
do (please look at http://www.jbox.dk/sanos/source/lib/pthread/mutex.c.html ) .
Suggested solution: throw out custom realization and use pthread_mutex_t,
pthread_mutex_lock, pthread_mutex_unlock and pthread_mutex_lock instead.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the wine-bugs
mailing list