[Bug 26500] Suggestion: throw out custom realization and use pthread_mutex_t

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Mar 21 04:00:15 CDT 2011


http://bugs.winehq.org/show_bug.cgi?id=26500

Dmitry Timoshkov <dmitry at codeweavers.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
           Platform|All                         |Other
         Resolution|                            |INVALID
            Summary|Critical section busy wait  |Suggestion: throw out
                   |                            |custom realization and use
                   |                            |pthread_mutex_t
         OS/Version|All                         |other
           Severity|normal                      |enhancement

--- Comment #1 from Dmitry Timoshkov <dmitry at codeweavers.com> 2011-03-21 04:00:15 CDT ---
(In reply to comment #0)
> The critical section machinery (EnterCriticalSection, LeaveCriticalSection,
> TryEnterCriticalSection) is realized suboptimal: waiting thread consumes CPU
> cycles polling LockCount

That's exactly the intent of that API usage. If you are interested why -
read MSDN or any other source.

-- 
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