http://bugs.winehq.org/show_bug.cgi?id=29168
--- Comment #122 from Carsten Juttner carjay@gmx.net 2012-03-06 13:44:26 CST --- (In reply to comment #116)
(In reply to comment #111)
Created attachment 39208 [details] Proof of concept for KUSER_SHARED_DATA updates
simple proof of concept showing that the initial server connect is working successful once the timer fields in KUSER_SHARED_DATA are updated properly.
May be adding the updating timers functionality to server.c,wine_server_call() would be more correct.
I had a similar idea but I'm still trying to get a better understanding of how the wine server works. For now I'd just want to share the results of my research.
So just to state the obvious before Alexandre hits me with a haversack :) the patch cannot be merged like that, using EnterCriticalSection this way is completely wrong.
Further notes: Windows of course does not update the times at 10 MHz granularity.
I wrote a little test application that confirms (on Vista) what http://www.dcl.hpi.uni-potsdam.de/research/WRK/2007/08/getting-os-informatio... says: the values are updated at a 15.625ms interval which is 64 Hz.