http://bugs.winehq.org/show_bug.cgi?id=26500
Dmitry Timoshkov dmitry@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@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.