This Wine critical section tracking patch is based on a patch Jeremy White (of 
CodeWeavers) wrote for the Corel branch back in February.  I have warped and extended 
if for the current WineHq head
revision.

The WineHQ head revision seems to use a LOT more critsects than the current Corel 
branch I had to boost the number of statically allocated slots by 100 to track 
WordPerfect properly.

I stuck a few of the RegisterDebugptr() calls in somewhat arbitrary places when I 
could not find a call to InitializeCriticalSection() for some critsects (e.g. 
X11Drv!).  They seem to be the right
places for now.

The original patch still exists in the Corel branch because it is not doing us any 
harm.  I'm copying this message to .devel because critsect developers my find this as 
useful as we did.

        Albert.

Changelog:
        Albert den Haan <[EMAIL PROTECTED]>
        Jeremy White 
        Record and display additional information related
        to critical sections. It should help track down the cause of
        critical section deadlocks.

--
Albert den Haan, Lead Developer @ Linux Port Team . Corel Corporation
[EMAIL PROTECTED]   x 5318

CritSectDebugAid.patch

Reply via email to